Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.

ph settings

Liam Jack edited this page Aug 31, 2015 · 5 revisions

Endpoint

/ph/settings

Description

This is a multi-functional endpoint that can change multiple account settings.

Send TFA Verification Code

Description

Used to send a two factor authentication verification code to the account phone number.

Request

  • action: sendTwoFACode
  • timestamp
  • req_token
  • username

Response

  • logged: true or false
  • message

Enable TFA

Description

Used to enable two factor authentication after receiving a verification code by SMS.

Request

  • action: enableTwoFA
  • code: Verification code received by SMS (Example: 986605)
  • dsig
  • dtoken1i
  • password: This is the account username (Don't ask me why.)
  • timestamp
  • req_token
  • username

Response

Success

  • logged: true
  • two_fa_verified_devices: Array of devices
    • id: Random UUID to identify the device
    • last_login: Timestamp of last login
    • name: Device name (Example: Android Device)

Error

  • logged: false
  • message

Notes

This will send an email to the account's email address notifying the account owner of the activation of TFA.

Disable TFA

Description

Used to disable two factor authentication

Request

  • action: disableTwoFA
  • timestamp
  • req_token
  • username

Response

  • logged: true or false

Notes

This will send an email to the account's email address notifying the account owner of the deactivation of TFA.

Verify email address

Description

This will send / resend an email to the account's email address containing a verification URL.

Request

  • action: verifyEmail
  • timestamp
  • req_token
  • username

Response

  • logged: true
  • message: Check email for confirmation link

Change story privacy

Description

Enables the user to decide who can view their story

Request

  • action: updateStoryPrivacy
  • privacySetting: CUSTOM, FRIENDS or EVERYONE
  • storyFriendsToBlock: List of friend usernames that will not be able to see your story (Only required when privacySetting = CUSTOM
  • timestamp
  • req_token
  • username

Response

  • logged: true or false
  • message: Story privacy updated
  • param: The privacySetting sent in request

Change snap privacy settings

Description

Allows the user to choose to receive snaps from everyone or friends only

Request

  • action: updatePrivacy
  • privacySetting: 0 to receive from everyone, 1 to receive from friends only
  • timestamp
  • req_token
  • username

Response

  • logged: true or false
  • message: Snap privacy updated
  • param: The privacySetting sent in request
Clone this wiki locally