Download the PHP package emergentmethods/asknews-php-sdk without Composer
On this page you can find all versions of the php package emergentmethods/asknews-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download emergentmethods/asknews-php-sdk
More information about emergentmethods/asknews-php-sdk
Files in emergentmethods/asknews-php-sdk
Download emergentmethods/asknews-php-sdk
More information about emergentmethods/asknews-php-sdk
Files in emergentmethods/asknews-php-sdk
Vendor emergentmethods
Package asknews-php-sdk
Short Description AskNews API
License MIT
Homepage https://asknews.app
Package asknews-php-sdk
Short Description AskNews API
License MIT
Homepage https://asknews.app
Please rate this library. Is it a good library?
Informations about the package asknews-php-sdk
asknews-php-sdk
AskNews API
Installation & Usage
Requirements
PHP 8.0 and later.
Composer
To install the bindings via Composer, add the following to composer.json
:
Then run composer install
Manual Installation
Download the files and include autoload.php
:
Getting Started
Please follow the installation procedure and then run the following:
API Endpoints
All URIs are relative to https://api.asknews.app
Class | Method | HTTP request | Description |
---|---|---|---|
AlertsApi | createAlert | POST /v1/chat/alerts | Create an alert |
AlertsApi | deleteAlert | DELETE /v1/chat/alerts/{alert_id} | Delete an alert |
AlertsApi | getAlert | GET /v1/chat/alerts/{alert_id} | Get an alert |
AlertsApi | getAlertLogs | GET /v1/chat/alerts/{alert_id}/logs | Get alert logs |
AlertsApi | getAlerts | GET /v1/chat/alerts | Get all created alerts |
AlertsApi | getAllAlertLogs | GET /v1/chat/alerts/logs | Get all alert logs |
AlertsApi | putAlert | PUT /v1/chat/alerts/{alert_id} | Update an alert |
AnalyticsApi | getAssetSentiment | GET /v1/analytics/finance/sentiment | Get a timeseries of finance news sentiment for assets |
AutofilterApi | autofilter | GET /v1/chat/autofilter | Generate filter params for AskNews endpoints |
ChatApi | getChatCompletions | POST /v1/openai/chat/completions | Get chat completions from a news-infused AI assistant |
ChatApi | getHeadlineQuestions | GET /v1/chat/questions | Get example headline questions |
ChatApi | listChatModels | GET /v1/openai/models | List available chat models |
ForecastApi | getForecast | GET /v1/chat/forecast | Make an expert forecast for a news event. |
GraphApi | buildGraph | POST /v1/news/graph | Build a custom mega-news-knowledge graph |
NewsApi | getArticle | GET /v1/news/{article_id} | Get an article by its UUID |
NewsApi | getArticles | GET /v1/news | Get multiple articles by UUID |
NewsApi | getSourcesReport | GET /v1/sources | Get the sources underlying AskNews |
NewsApi | searchNews | GET /v1/news/search | Search for enriched real-time news context |
NewslettersApi | deleteNewsletter | DELETE /v1/chat/newsletters/{newsletter_id} | Delete a newsletter |
NewslettersApi | deleteNewsletterContact | DELETE /v1/chat/newsletters/{newsletter_id}/contacts/{contact_id} | Delete a newsletter contact |
NewslettersApi | getNewsletter | GET /v1/chat/newsletters/{newsletter_id} | Get a newsletter |
NewslettersApi | getNewsletterContact | GET /v1/chat/newsletters/{newsletter_id}/contacts/{contact_id} | Get a newsletter contact |
NewslettersApi | getNewsletterContacts | GET /v1/chat/newsletters/{newsletter_id}/contacts | Get newsletter contacts |
NewslettersApi | getNewsletters | GET /v1/chat/newsletters | Get all created newsletters |
NewslettersApi | getPublicNewsletters | GET /v1/chat/newsletters/public | Get all public newsletters |
NewslettersApi | patchNewsletterContact | PATCH /v1/chat/newsletters/{newsletter_id}/contacts/{contact_id} | Update a newsletter contact |
NewslettersApi | postNewsletter | POST /v1/chat/newsletters | Create a newsletter |
NewslettersApi | postNewsletterContacts | POST /v1/chat/newsletters/{newsletter_id}/contacts | Create a newsletter contact |
NewslettersApi | putNewsletter | PUT /v1/chat/newsletters/{newsletter_id} | Update a newsletter |
PingApi | ping | GET / | Ping |
ProfileApi | getUserProfile | GET /v1/profiles/me | Get the current user's profile |
RedditApi | searchReddit | GET /v1/reddit/search | Search Reddit, summarize threads, and return analysis. |
StoriesApi | getStories | GET /v1/stories | Filter and search for top news narratives |
StoriesApi | getStory | GET /v1/stories/{story_id} | Get a story containing updates |
WebsearchApi | liveWebSearch | GET /v1/chat/websearch | Run a live websearch. |
Models
- AbcAPIErrorModel1
- AbcAPIErrorModel10
- AbcAPIErrorModel11
- AbcAPIErrorModel12
- AbcAPIErrorModel13
- AbcAPIErrorModel14
- AbcAPIErrorModel15
- AbcAPIErrorModel16
- AbcAPIErrorModel17
- AbcAPIErrorModel18
- AbcAPIErrorModel19
- AbcAPIErrorModel2
- AbcAPIErrorModel20
- AbcAPIErrorModel21
- AbcAPIErrorModel22
- AbcAPIErrorModel23
- AbcAPIErrorModel24
- AbcAPIErrorModel25
- AbcAPIErrorModel26
- AbcAPIErrorModel27
- AbcAPIErrorModel28
- AbcAPIErrorModel29
- AbcAPIErrorModel3
- AbcAPIErrorModel30
- AbcAPIErrorModel31
- AbcAPIErrorModel32
- AbcAPIErrorModel33
- AbcAPIErrorModel34
- AbcAPIErrorModel35
- AbcAPIErrorModel36
- AbcAPIErrorModel37
- AbcAPIErrorModel38
- AbcAPIErrorModel39
- AbcAPIErrorModel4
- AbcAPIErrorModel40
- AbcAPIErrorModel41
- AbcAPIErrorModel42
- AbcAPIErrorModel43
- AbcAPIErrorModel44
- AbcAPIErrorModel5
- AbcAPIErrorModel6
- AbcAPIErrorModel7
- AbcAPIErrorModel8
- AbcAPIErrorModel9
- AlertLog
- AlertResponse
- Article
- AskNewsSource
- AsknewsApiErrorsAPIErrorModel
- AsknewsApiSchemaV1CommonGraphRelationships
- AsknewsApiSchemaV1StoriesGraphRelationships
- BlueskySource
- BlueskySourceParams
- BodyBuildGraph
- Choice
- Classification
- ClusterProbabilities
- Continent
- CreateAlertRequest
- CreateChatCompletionRequest
- CreateChatCompletionRequestMessage
- CreateChatCompletionRequestMessage1
- CreateChatCompletionResponse
- CreateChatCompletionResponse1
- CreateChatCompletionResponseChoice
- CreateChatCompletionResponseChoice1
- CreateChatCompletionResponseStream
- CreateChatCompletionResponseStream1
- CreateChatCompletionResponseStreamChoice
- CreateChatCompletionResponseStreamChoice1
- CreateChatCompletionResponseUsage
- CreateChatCompletionResponseUsage1
- CreateNewsletterRequest
- DisplayImageUrl
- DomainUrl
- DomainUrl1
- EmailAction
- EmailParams
- Entities
- FilterParams
- FilterParamsMetadata
- FilterParamsResponse
- FinanceResponse
- FinanceResponseTimeSeries
- FinanceResponseTimeSeriesData
- ForecastResponse
- GeoCoordinate
- GoogleDocsAction
- GoogleDocsParams
- GraphResponse
- HTTPValidationError
- IntraClusterStatistics
- KeyPerson
- ListModelResponse
- ModelItem
- NewsletterContactCreateResponse
- NewsletterContactRequest
- NewsletterContactResponse
- NewsletterContactUpdateResponse
- NewsletterPublicResponse
- NewsletterResponse
- Offset
- Offset1
- Offset2
- Offset3
- Offset4
- PaginatedResponseAlertLog
- PaginatedResponseAlertResponse
- PaginatedResponseNewsletterPublicResponse
- PaginatedResponseNewsletterResponse
- PingModel
- Profile
- ProfileResponse
- RedditComment
- RedditEntities
- RedditPerspective
- RedditResponse
- RedditThread
- ReplyTo
- ReportRequest
- ReportingVoice
- ReportingVoice1
- ResendBroadcastAction
- ResendBroadcastParams
- SearchResponse
- SearchResponseDictItem
- Sentiment
- ServiceAccountProfile
- SourceReportItem
- SourcesInner
- Stop
- StoriesResponse
- StoryResponse
- StoryUpdate
- StoryUpdateDisplayImageUrlsInner
- TelegramSource
- TelegramSourceParams
- ThreadId
- TriggersInner
- UpdateAlertRequest
- UpdateNewsletterRequest
- User
- UserProfile
- UserProfileSubscription
- ValidationError
- ValidationErrorItem
- ValidationErrorLocInner
- ValidationErrorModel
- Value
- WebSearchResponse
- WebSearchResult
- WebhookAction
- WebhookParams
Authorization
- Type:
OAuth
- Flow:
client_credentials
- Authorization URL:
https://auth.asknews.app/oauth2/auth
- Scopes:
- chat: Chat related operations
- news: News related operations
- analytics: Analytics related operations
- stories: Stories related operations
- profile: Profile related operations
- reddit: Reddit related operations
Find full details at the AskNews API documentation.
Support
Join our Discord to see what other people are building, and to get support with your projects.
All versions of asknews-php-sdk with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0 || ^8.1 || ^8.2 || ^8.3
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^7.3
guzzlehttp/psr7 Version ^1.7 || ^2.0
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^7.3
guzzlehttp/psr7 Version ^1.7 || ^2.0
The package emergentmethods/asknews-php-sdk contains the following files
Loading the files please wait ....