Getting key to access another API with icon 🔒
. First step to access our system with API.
/api/v2/auth/login
email
required
with password. Valid email addresspassword
required
with email. User password.fb_token
required
with fb_uid. Facebook token from Facebook Connect.fb_uid
required
with fb_token. Facebook UID from Facebook Connect. Used for checking existing user.gcm_id
optional
Google Cloud Message ID. For notification.
You can use with either email and password, or fb_token and fb_uid.
curl -X POST --data "[email protected]&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
email
required
Valid email address.password
required
User password.name
required
User name.id_location
required
Location ID, you can get it from Location.phone
optional
User phone.gcm_id
optional
Google Cloud Message ID. For notification.longitude
optional
Location user by Longitude.latitude
optional
Location user by Latitude.avatar
optional
Path for user avatarfb_token
optional
Facebook Access Token from Facebook Connect.show_phone
deprecated
address
deprecated
curl -X POST --data "[email protected]&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
email
required
Valid email address.
curl -X POST --data "[email protected]" http://shoop.dev/api/v2/auth/forgot_password
{
"status": 1,
"message":"Profile detail and reset password has been sent to your email."
}