Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/julien-c/topsites

Alexa Top Sites API
https://github.com/julien-c/topsites

Last synced: about 1 month ago
JSON representation

Alexa Top Sites API

Awesome Lists containing this project

README

        

-------------------------------------------------------------------------
- PHP Sample for Alexa Top Sites -
-------------------------------------------------------------------------
This sample will make a request to the Alexa Top Sites web service
using your Access Key ID and Secret Access Key.

Tested with PHP 5.3.2.

Steps:
1. Sign up for an Amazon Web Services account at http://aws.amazon.com
(Note that you must have a valid credit card)
2. Get your Access Key ID and Secret Access Key
3. Sign up for Alexa Top Sites at http://aws.amazon.com/alexatopsites
4. Uncompress the zip file into a working directory
5. Run

php topsites.php ACCESS_KEY_ID SECRET_ACCESS_KEY [COUNTRY_CODE]

Country code is optional.

If you are getting "Not Authorized" messages, you probably have one of the
following problems:

1. Your access key or secret key were not entered properly. Please re-check
that they are correct.

2. You did not sign up for Alexa Top Sites at
http://aws.amazon.com/alexatopsites (This step is separate from signing
up for Amazon Web Services.)

3. Your credit card was not valid.

If you are getting "Request Expired" messages, please check that the date
and time are properly set on your computer.