Skip to content

Commit 26f98e3

Browse files
authored
fix: update doc with POST request for /loginAs (#897)
1 parent 2ceb1f0 commit 26f98e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_includes/rest/users.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ Calling the endpoint requires the master key and it returns the same response fo
629629

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

0 commit comments

Comments
 (0)