-
Notifications
You must be signed in to change notification settings - Fork 1
[API] Create & validate addresse
Dimitri Jorge edited this page Mar 25, 2014
·
1 revision
Note 1: In every API routes where :currency appears, it refers to the currency symbol.
See this page for a list of all available currencies.
Note 2: In every API routes where :encrypted_email appears, it refers to the md5 of the email.
Route: POST /api/:currency/addresses
Params: email and addresse
Creates the address for the given :currency, an email is then sent to the given email with a link to validate the address.
Example:
curl -X POST http://gravaco.in/api/ltc/addresses \
-d "email=your_email" \
-d 'address=your_address'The output will be a message with a 200 status code in case of success or 40X otherwise.
Route GET /api/:currency/:encrypted_email/validate/:token
Params: Token is the confirmation token received on the email after the addresse creation.
Example:
curl -X GET http://gravaco.in/api/ltc/addresses/81048f82b9674581f0f5ce7fabe1a602/validate/320408d06b23f7ea7d4c04188de027b9The response will be a 200 status code in case of success or 40X otherwise.