Skip to content

Latest commit

 

History

History
78 lines (44 loc) · 1.22 KB

subscription.md

File metadata and controls

78 lines (44 loc) · 1.22 KB

Subscription service API


This service is used for mapping between users and phone numbers. It supports the following private API calls:

Add subscription

  • URL

    /rpc/subscription/subscription/add

  • Method

    POST

  • Data Params

    Required

    • actorId [string] - Actor id
    • phoneNumber [string] - Phone number
  • Success Response

    • Code: 200
      Content
      • subscriptionId [number] - Subscription id
      • actorId [string] - Actor id
      • phoneNumber [string] - Phone number

Get subscription

  • URL

    /rpc/subscription/subscription/get

  • Method

    POST

  • Data Params

    Optional

    • actorId [string] - Actor id
    • phoneNumber [string] - Phone number
  • Success Response

    • Code: 200
      Content
      • actorId [string] - Actor id
      • phoneNumber [string] - Phone number

Remove subscription

  • URL

    /rpc/subscription/subscription/remove

  • Method

    POST

  • Data Params

    Optional

    • subscriptionId [number] - Subscription id
  • Success Response

    • Code: 200
      Content
      • subscriptionId [number] - Subscription id