nextpyp.client.gen.AppsService#

class nextpyp.client.gen.AppsService#

Bases: object

Service providing functions specific to apps, mainly requesting and managing app tokens

Methods

__init__

request_token

Request an app token for your app on behalf of a specific user.

versions

Returns the version numbers of NextPYP

Details

__init__(client)#
Parameters:

client (Client) –

Return type:

None

request_token(user_id, app_name, app_permission_ids)#

Request an app token for your app on behalf of a specific user. Once requested, the user will need to approve the token request on the website. After approval, the user can copy the app token (it’s a string) into your app.

Permission Needed:

none

Return type:

AppTokenRequestData

Parameters:
  • user_id (str) –

  • app_name (str) –

  • app_permission_ids (List[str]) –

versions()#

Returns the version numbers of NextPYP

Permission Needed:

none

Return type:

VersionData