Getting key to access another API with icon 🔒. First step to access our system with API.
/api/v2/auth/login
emailrequiredwith password. Valid email addresspasswordrequiredwith email. User password.fb_tokenrequiredwith fb_uid. Facebook token from Facebook Connect.fb_uidrequiredwith fb_token. Facebook UID from Facebook Connect. Used for checking existing user.gcm_idoptionalGoogle Cloud Message ID. For notification.
You can use with either email and password, or fb_token and fb_uid.
curl -X POST --data "email=shcode@ymail.com&password=rahasia" http://shoop.dev/api/v2/auth/login{
"status": 1,
"key": "4974328ce522a3eb86ecf73a193490314cf98c74"
}Missing parameter.
{
"status": 0,
"error": "Your parameter is not complete. Missing parameter 'password'."
}Password invalid.
{
"status": 0,
"error": "Your password is invalid."
}Register to Shoop system. If you connect with facebook please add fb_token.
/api/v2/auth/register
emailrequiredValid email address.passwordrequiredUser password.namerequiredUser name.id_locationrequiredLocation ID, you can get it from Location.phoneoptionalUser phone.gcm_idoptionalGoogle Cloud Message ID. For notification.longitudeoptionalLocation user by Longitude.latitudeoptionalLocation user by Latitude.avataroptionalPath for user avatarfb_tokenoptionalFacebook Access Token from Facebook Connect.show_phonedeprecatedaddressdeprecated
curl -X POST --data "email=shcode@ymail.com&password=rahasia&name=shcode&id_location=7&phone=082232856363" http://shoop.dev/api/v2/auth/register{
"status": 1,
"key": "4974328ce522a3eb86ecf73a193490314cf98c74"
}Request token to reset password and then send to email.
/api/v2/auth/forgot_password
emailrequiredValid email address.
curl -X POST --data "email=shcode@ymail.com" http://shoop.dev/api/v2/auth/forgot_password{
"status": 1,
"message":"Profile detail and reset password has been sent to your email."
}