Skip to content

Instantly share code, notes, and snippets.

@zhuowei
Created February 7, 2021 04:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhuowei/7dfec6b5177c106b10e8635fce834c25 to your computer and use it in GitHub Desktop.
Save zhuowei/7dfec6b5177c106b10e8635fce834c25 to your computer and use it in GitHub Desktop.
POST /api/start_phone_number_auth HTTP/1.1
Host: zhuowei-clubhouse.ngrok.io
Accept: application/json
CH-UserID: (null)
CH-Languages: en-US
CH-Locale: en_US
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US;q=1
CH-AppBuild: 269
CH-AppVersion: 0.1.25
Content-Length: 31
CH-DeviceId: 0B5781C0-E06B-4767-98C0-92CF06158B74
User-Agent: clubhouse/269 (iPhone; iOS 14.1; Scale/3.00)
Content-Type: application/json; charset=utf-8
X-Forwarded-Proto: https
X-Forwarded-For: <>
{"phone_number":"+11234567890"}
{
"success": true,
"is_blocked": false,
"error_message": null
}
POST /api/complete_phone_number_auth HTTP/1.1
Host: zhuowei-clubhouse.ngrok.io
Accept: application/json
CH-UserID: (null)
CH-Languages: en-US
CH-Locale: en_US
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US;q=1
CH-AppBuild: 269
CH-AppVersion: 0.1.25
Content-Length: 58
CH-DeviceId: 0B5781C0-E06B-4767-98C0-92CF06158B74
User-Agent: clubhouse/269 (iPhone; iOS 14.1; Scale/3.00)
Content-Type: application/json; charset=utf-8
X-Forwarded-Proto: https
X-Forwarded-For: <>
{"verification_code":"1234","phone_number":"+11234567890"}
{
"success": true,
"is_verified": true,
"user_profile": {
"user_id": <>,
"name": null,
"photo_url": null,
"username": "<>"
},
"auth_token": "<>",
"refresh_token": "<>",
"access_token": "<>",
"is_waitlisted": true,
"is_onboarding": false
}
GET /api/check_waitlist_status HTTP/1.1
Host: zhuowei-clubhouse.ngrok.io
Authorization: Token <>
CH-Languages: en-US
CH-UserID: (null)
CH-Locale: en_US
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US;q=1
CH-AppBuild: 269
CH-AppVersion: 0.1.25
Accept: application/json
CH-DeviceId: 0B5781C0-E06B-4767-98C0-92CF06158B74
User-Agent: clubhouse/269 (iPhone; iOS 14.1; Scale/3.00)
X-Forwarded-Proto: https
X-Forwarded-For: <>
{
"is_waitlisted": true,
"is_onboarding": true,
"success": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment