Thursday, June 5, 2014

about EZ2Vegas as being a very helpful sight.

As a developer you can create applications and add them to EZ2Vegas, taking advantage of the existing user base. You host the application, which means that you are in full control of your server specifications.

Setting up an APP

To interact with EZ2Vegas your application can issue calls to our API and request or post information.
When you add an application to our site we will give you an APP ID.

Requesting a Token

Whenever you plan on using our API you must first request a token. In order to request a token you need a unique key that we send to you when a user visits your APP from an iframe on our site. We pass this along as $_GET['key'].
This is an example of how you can request a token:
http://www.ez2vegas.com/token.php?key=$_GET['key']
If successful, you will get a JSON response like:
Object
(
    [token] => LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUc4d0RRWUpLb1pJaHZjTkFRRUJCUUFEWGdBd1d3SlVBdHFZdmVWOXFEdDd6NFhXTXYzS3VZM2JyWXpUKzR0VgpBbERrN1dQWjhqRVpoVzBNWjE1Z3lHdGNlNm5ueFRNenp4SXpHM29BRVIzc0JVRCtYdStHb21JeVV4UE1RN1NtCkVPdFg0ZTNwekp6R081cUxBZ01CQUFFPQotLS0tLUVORCBQVUJMSUMgS0VZLS0tLS0K
)

Sending a Request

Now that you have a valid token you can make requests to our server. With each request you must pass the token we created for you.
An example call to our API server would look like:
http://www.ez2vegas.com/api.php?token=#{TOKEN}&method=#{METHOD_NAME}

Understanding an API Response

For methods that could return more than one item the response will contain an indicator of the total items available as well as how many pages there are. We return by default 10 items at most and in order to get the next 10 items you would have to pass the param "page=2".
To the left you will find a list of the modules that implement API methods. Click on the module and you will see a list of the methods that your application can use. For shortness and formatting purposes we do not include the full request in there but only the most relevant parts.

for more information visit this site:http://www.Ez2Vegas.com.

No comments:

Post a Comment