Amir Amir -4 years ago 174
reST (reStructuredText) Question

Https Error in Postman when Send push notification via Rest

I'm fairly new To Parse with Rest Api

I wanna test samples in Their Webistes's ( Here ) in Postman But every time I Post it gives me following Authentication error :

enter image description here

I Wanna test following code in Postman ( see origin here )

curl -X POST \
-H "X-Parse-Application-Id: 0VoIZO8cgmnyfiuklLLkKkxOX7r" \
-H "X-Parse-REST-API-Key: UjU5eb5zjic75mPZVdHExYqnneT" \
-H "Content-Type: application/json" \
-d '{
"deviceType": "ios",
"deviceToken": "0123456789abcdef0123456789cdef0123456789abcdef",
"channels": [
}' \

How Can I resolve this issue ? What is that ? And What is required ?

Answer Source

You are reqeuesting GET request and api doc says its POST request.

1) Enter correct url and select POST request method. Add required headers as per the doc.

enter image description here

2) Enter raw JSON data in your request body.

enter image description here

3) You will receive your output. Since api key and application id is not valid so that I received unauthorized error.

enter image description here

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download