• Home
  • Developer
  • EnglishEnglish
    • ไทยไทย
    • EnglishEnglish
  • Home
  • Developer
  • EnglishEnglish
    • ไทยไทย
    • EnglishEnglish
  • Introduction
    • Authentication
    • Campaign
      • Category list & Campaign list
      • Campaign Detail
    • Redemption history
  • Our Api services
    • Address
    • Authorization
      • Login
      • Registration
      • One-time Password
    • Category List
    • Campaign
      • Campaign List
      • Campaign Detail
      • Campaign Redemptions
    • Coupon
    • Consent
    • Point Log
    • Profile
    • History
      • Redemption History
    • Request help
    • Notification
  • REST Buzzebees API reference
  • Developer Tool
  • FAQ

Profile

Get Profile

Various personal information of users that are entered during registration and becoming members can be viewed. This includes personal information such as their name, date of birth, email, and others. Profile pictures from Facebook or Buzzebees can also be viewed. This information can be accessed through the API Get User Profile.

curl --location --request GET 'https://buzzebees-stg.azure-api.net/api/profile/me?' 
--header 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' 
--header 'Ocp-Apim-Subscription-Key: {Subscription-Key}'
--header 'Ocp-Apim-Trace: 1 '
--header 'App-Id:  {App-Id}'
--header 'Authorization: token {token}'

Update profile

Updating personal information involves editing important information, but the conditions for updating depend on the user settings in the Buzzebees back office and design according to usage. From the BuzzebeesDemo example, users log in using their email address as their username, so the email address cannot be edited. Additional parameters can be viewed by calling the API Update User Profile.

curl --location --request POST 'https://buzzebees-stg.azure-api.net/api/profile/me' 
--header 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' 
--header 'Ocp-Apim-Subscription-Key: {Subscription-Key}'
--header 'Ocp-Apim-Trace: 1 '
--header 'App-Id:  {App-Id}'
--header 'Authorization: token {token}'
--form 'firstname="Test"'
--form 'lastname="My last name"'
--form 'birthdate="12233333"'
--form 'locale="1054"'

The locale is the language preference of the user. If the language preference is changed, it is necessary to update the token to correctly retrieve data in the language preferred by the user.

Points

Total points refers to the accumulated points of the user that can be used to redeem for special rewards. The current user's total points can be viewed through the API Get Update Point.

curl --location --request GET 'https://buzzebees-stg.azure-api.net/api/profile/me/updated_points' 
--header 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' 
--header 'Ocp-Apim-Subscription-Key: {Subscription-Key}'
--header 'Ocp-Apim-Trace: 1 '
--header 'App-Id:  {App-Id}'
--header 'Authorization: token {token}'

Points about to expire refers to the points of the user that will expire soon. The API Get Point Expire returns an array of the number of points and the expiration date.

curl --location --request GET 'https://buzzebees-stg.azure-api.net/api/profile/me/allexpiring_points?' 
--header 'Content-Type: application/x-www-form-urlencoded; charset=utf-8'
--header 'Ocp-Apim-Subscription-Key: {Subscription-Key}'
--header 'Ocp-Apim-Trace: 1 '
--header 'App-Id:  {App-Id}'
--header 'Authorization: token {token}'

Change phone number

When a user wants to change their mobile phone number, typically an OTP code is required to confirm their identity as the account owner. Therefore, after the user enters their new phone number, the API Get OTP should be called. Once the user has completed entering their information, the API Check OTP should be called. If successful, the system will automatically update the user's phone number.

curl --location --request POST 'https://buzzebees-stg.azure-api.net/api/auth/bzbs_authen' 
--header 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' 
--header 'Ocp-Apim-Subscription-Key: {Subscription-Key}'
--header 'Ocp-Apim-Trace: 1 '
--header 'App-Id:  {App-Id}'
--header 'Authorization: token {token}'
--form 'otp="{otp}"'
--form 'refcode="{refcode}"'
--form 'contact_number="012999999"'

Change password

If a user wants to change their password for the login system, they can call the API Change Password. Additional information can be viewed in the API List.

curl --location --request POST 'https://buzzebees-stg.azure-api.net/api/profile/me/change_password' 
--header 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' 
--header 'Ocp-Apim-Subscription-Key: {Subscription-Key}'
--header 'Ocp-Apim-Trace: 1 '
--header 'App-Id:  {App-Id}'
--header 'Authorization: token {token}'
--form 'current="12345678"'
--form 'change="11111111"'

Forgot password

API Forgot Password

curl --location --request GET 'https://buzzebees-stg.azure-api.net/api/profile/{email}/forget_password?' 
--header 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' 
--header 'Ocp-Apim-Subscription-Key: {Subscription-Key}'
--header 'Ocp-Apim-Trace: 1 '
--header 'App-Id:  {App-Id}'
--header 'Authorization: token {token}'

Reset password

API Reset Password

curl --location --request POST 'https://buzzebees-stg.azure-api.net/api/profile/{email}/forget_password' 
--header 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' 
--header 'Ocp-Apim-Subscription-Key: {Subscription-Key}'
--header 'Ocp-Apim-Trace: 1 '
--header 'App-Id:  {App-Id}'
--header 'Authorization: token {token}'
--form 'change="123456"'
--form 'refcode="xxxxx"'
Previously
Point Log
Up Next
History
  • FAQ
  • Help
  • Privacy
  • Copyright 2022 Buzzebees Co.,Ltd. All Rights Reserved