/API

About Centroid API

API Methods

global / getCurrentRate

Use for: to get the current rate

Authentication

This method requires authentication.

Arguments

Required

api_key
Your API application key. See here for more details.
api_sig
Your API signature. See here for more details.
signature
The signature that is used to create the api_sig

Optional

format
The format the output has to be in
callback
Only for json, adds the given value as the callback

Example call url

http://[api category].api.centroidmedia.com/getCurrentRate?api_key=[your api key]&api_sig=[api signature]&signature=[signature]

Example response code

    <query>
        <method>getCurrentRate</method>
        <currentRate>45</currentRate>
    </query>
{
    query:  
    {
        method:  "getCurrentRate",
        currentRate:  45
    }
}

Error codes

1: Invalid API key
The API key that was provided is invalid
2: Invalid API signature
The API signature that was provided is invalid
8: API signature was not unique
The API signature that was provided, was already used by the API key. Every time a call is made, the signature has to be unique.

Note

getCurrentRate won't affect your rate.