QR-Code Services
decodeCode
Decode a code through the API.
Arguments
- API-KEY (Required) : Your API application key. See here for more details.
- code (Required) : The QR-code number to decode.
- source (Optional) : The source is the kind of hit that has to be stored in the database for this decode operation. When not given it defaults to 'api'. The following values are valid:
- api : generated when a code is decode via the decodeCode method of this API
- mobile : generated when a user decodes a code via the QR Code reader (e.g. http://decode.kaywa.com/1234567)
- sms : generated when a user decodes a code via the SMS interface (e.g. by sending 'QR 1234567' to 202)
Returns
- In case of success, an array containing :
- the URL associated to the given numeric code, if any.
- the handler that was used to decode the code.
- Null, otherwise
Example Request (HTTP GET)
http://decode.kaywa.com/api/decodeCode?API-KEY=your_api_key_here&code=2029998765
Example Response
["http:\/\/www.kaywa.com","default"]
Error Codes
- 1 : DECODE_APIERROR_INVALID_CODE - The code passed was invalid.
decoding a code through the API does not count as a hit on said code.


