Skip to content

Instantly share code, notes, and snippets.

@andrisasuke
Last active December 5, 2017 09:38
Show Gist options
  • Save andrisasuke/d5710eda3973a8e5924706cc224c9501 to your computer and use it in GitHub Desktop.
Save andrisasuke/d5710eda3973a8e5924706cc224c9501 to your computer and use it in GitHub Desktop.
list of push notification to rabitMq
request offer posted : to requester yg membuat order
from api : requests/{request_id}/offers [POST]
{
"push_token" :[ "$push_token_requester_1"],
"type": "REQUEST_OFFER",
"request_id": 1,
"offer_id": 1,
"text": "$traveller_name give offer $offer_price for your request $item_name"
"device": "android" / "ios" berdasarkan app_id yg ada ditable user_devices
}
##############
offer accepted : to traveller yg post offer
from api : http://gibby.stagingapps.net/api/requests/id/offers/accept?api_key=api_key
{
"push_token" :[ "$push_token_traveller_1"],
"type": "OFFER_ACCEPTED",
"request_id": 1,
"offer_id": 1,
"text": "$requester_name has accepted your offer $offer_price for your request $item_name"
"device": "android" / "ios" berdasarkan app_id yg ada ditable user_devices
}
################
offer rejected : to traveller yg post offer
from api : http://gibby.stagingapps.net/api/requests/id/offers/decline?api_key=api_key
{
"push_token" :[ "$push_token_traveller_1"],
"type": "OFFER_REJECTED",
"request_id": 1,
"offer_id": 1,
"text": "$requester_name has rejected your offer $offer_price for your request $item_name"
"device": "android" / "ios" berdasarkan app_id yg ada ditable user_devices
}
############
traveller cancel offer : to requester yg create order
from api : http://gibby.stagingapps.net/api/requests/id/offers/cancel?api_key=api_key
{
"push_token" :[ "$push_token_requester_1"],
"type": "TRAVELLER_CANCEL",
"request_id": 1,
"offer_id": 1,
"text": "$traveller_name has canceled your request $item_name"
"device": "android" / "ios" berdasarkan app_id yg ada ditable user_devices
}
##########
requester cancel : to traveller yg diaccept offer nya
from api : http://gibby.stagingapps.net/api/requests/id/cancel?api_key=api_key
{
"push_token" :[ "$push_token_traveller_1"],
"type": "REQUESTER_CANCEL",
"request_id": 1,
"offer_id": 1,
"text": "$requester_name has canceled your request $item_name"
"device": "android" / "ios" berdasarkan app_id yg ada ditable user_devices
}
#############
item purchased : to requester yg create order
from api : trackings/{request_id}/purchase
{
"push_token" :[ "$push_token_requester_1"],
"type": "REQUEST_PURCAHSED",
"request_id": 1,
"offer_id": 1,
"text": "Your $item_name has been purchased by $traveller_name"
"device": "android" / "ios" berdasarkan app_id yg ada ditable user_devices
}
#############
item deliver : to requester yg dikirimi barang nya
from api : trackings/{request_id}/deliver
{
"push_token" :[ "$push_token_traveller_1"],
"type": "REQUEST_DELIVERED",
"request_id": 1,
"offer_id": 1,
"text": "Your $item_name delivery has been deliverd by $requester_name"
}
#############
item deliver confirm : to traveller yg diaccept offer nya
from api : http://gibby.stagingapps.net/api/trackings/id/receive?api_key=api_key
{
"push_token" :[ "$push_token_traveller_1"],
"type": "REQUEST_RECEIVED_CONFIRM",
"request_id": 1,
"offer_id": 1,
"text": "Your $item_name delivery has been received by $requester_name"
"device": "android" / "ios" berdasarkan app_id yg ada ditable user_devices
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment