\AlchemyAPI
Synopsis
class AlchemyAPI
{
- // members
- private $_api_key;
- private $_ENDPOINTS;
- private string $_BASE_URL = 'http://access.alchemyapi.com/calls';
- // methods
- public void __construct()
- public void setKey()
- public void image_keywords()
- public void entities()
- public void keywords()
- public void concepts()
- public void sentiment()
- public void sentiment_targeted()
- public void text()
- public void text_raw()
- public void author()
- public void language()
- public void title()
- public void relations()
- public void category()
- public void feeds()
- public void microformats()
- public void imageExtraction()
- public void taxonomy()
- public void combined()
- private void analyze()
- private void analyzeImage()
Members
private
- $_BASE_URL
- $_ENDPOINTS
- $_api_key
Methods
private
- analyze() — HTTP Request wrapper that is called by the endpoint functions. This function is not intended to be called through an external interface.
- analyzeImage()
public
- __construct() — Initializes the SDK so it can send requests to AlchemyAPI for analysis.
- category() — Categorizes the text for text, a URL or HTML.
- combined()
- concepts() — Tags the concepts for text, a URL or HTML.
- entities() — Extracts the entities for text, a URL or HTML.
- feeds() — Detects the RSS/ATOM feeds for a URL or HTML.
- imageExtraction()
- image_keywords() — Returns tag for an image URL or image included in the body of the http request.
- keywords() — Extracts the keywords from text, a URL or HTML.
- language() — Detects the language for text, a URL or HTML.
- microformats() — Parses the microformats for a URL or HTML.
- relations() — Extracts the relations for text, a URL or HTML.
- sentiment() — Calculates the sentiment for text, a URL or HTML.
- sentiment_targeted() — Calculates the targeted sentiment for text, a URL or HTML.
- setKey()
- taxonomy()
- text() — Extracts the cleaned text (removes ads, navigation, etc.) for text, a URL or HTML.
- text_raw() — Extracts the raw text (includes ads, navigation, etc.) for a URL or HTML.
- title() — Extracts the title for a URL or HTML.