Skip to content

Commit

Permalink
fix: update doc with POST request for /loginAs (parse-community#897)
Browse files Browse the repository at this point in the history
  • Loading branch information
aclec authored Aug 8, 2022
1 parent 2ceb1f0 commit 26f98e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _includes/rest/users.md
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ Calling the endpoint requires the master key and it returns the same response fo

<div class="language-toggle">
<pre><code class="bash">
curl -X GET \
curl -X POST \
-H "X-Parse-Application-Id: <span class="custom-parse-server-appid">${APPLICATION_ID}</span>" \
-H "X-Parse-REST-API-Key: <span class="custom-parse-server-restapikey">${REST_API_KEY}</span>" \
-H "X-Parse-Master-Key: ${MASTER_KEY}" \
Expand All @@ -643,7 +643,7 @@ import json,httplib,urllib
connection = httplib.HTTPSConnection('<span class="custom-parse-server-url">YOUR.PARSE-SERVER.HERE</span>', 443)
params = urllib.urlencode({"userId":"abc123"})
connection.connect()
connection.request('GET', '<span class="custom-parse-server-mount">/parse/</span>loginAs?%s' % params, '', {
connection.request('POST', '<span class="custom-parse-server-mount">/parse/</span>loginAs?%s' % params, '', {
"X-Parse-Application-Id": "<span class="custom-parse-server-appid">${APPLICATION_ID}</span>",
"X-Parse-REST-API-Key": "<span class="custom-parse-server-restapikey">${REST_API_KEY}</span>",
"X-Parse-Master-Key": "${MASTER_KEY}",
Expand Down

0 comments on commit 26f98e3

Please sign in to comment.