Giter Site home page Giter Site logo

topsites's Introduction

-------------------------------------------------------------------------
-                      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.

topsites's People

Contributors

julien-c avatar

Stargazers

cj64 avatar  avatar  avatar  avatar  avatar Geovani avatar

Watchers

 avatar James Cloos avatar  avatar  avatar

topsites's Issues

Getting Error

Tried running this code via cmd, got the below error -

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in C:\Users\Vineet\Desktop\topsites-master\topsites-master\topsites.class.php on line 88

Exception: String could not be parsed as XML in C:\Users\Vineet\Desktop\topsites-master\topsites-master\topsites.class.php on line 88

Call Stack:
0.0003 231872 1. {main}() C:\Users\Vineet\Desktop\topsites-master\topsites-master\topsites.php:0
0.0010 262592 2. TopSites->getTopSites() C:\Users\Vineet\Desktop\topsites-master\topsites-master\topsites.php:17
4.0118 264168 3. TopSites::parseResponse() C:\Users\Vineet\Desktop\topsites-master\topsites-master\topsites.class.php:30
4.0118 264592 4. SimpleXMLElement->__construct() C:\Users\Vineet\Desktop\topsites-master\topsites-master\topsites.class.php:88

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.