Skip to content
This repository was archived by the owner on Oct 30, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion alchemyapi.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public function AlchemyAPI() {
$this->_ENDPOINTS['feeds']['html'] = '/html/HTMLGetFeedLinks';
$this->_ENDPOINTS['microformats']['url'] = '/url/URLGetMicroformatData';
$this->_ENDPOINTS['microformats']['html'] = '/html/HTMLGetMicroformatData';
$this->_ENDPOINTS['apikeyinfo']['info'] = '/info/GetAPIKeyInfo';
}


Expand Down Expand Up @@ -495,7 +496,23 @@ public function microformats($flavor, $data, $options) {
return $this->analyze($this->_ENDPOINTS['microformats'][$flavor], $options);
}


/**
* Gets information about an API Key, including the daily transaction limit and
* consumed transactions.
*
* INPUT:
* options -> various parameters that can be used to adjust how the API works, see below for more info on the available options.
*
* Available Options:
* none
*
* OUTPUT:
* The response, already converted from JSON to a PHP object.
*/
public function apikeyinfo($options) {
return $this->analyze($this->_ENDPOINTS['apikeyinfo']['info'], $options);
}

/**
* HTTP Request wrapper that is called by the endpoint functions. This function is not intended to be called through an external interface.
* It makes the call, then converts the returned JSON string into a PHP object.
Expand Down