Application: Update (app_update)¶
Update a new OAuth application
Auth Scope(s): admin
-
app_update
(app_update: int, name: str, scopes: List, app_markup_percentage: Optional[Union[int, float, Decimal]] = None, appstore: Optional[str] = None, github: Optional[str] = None, googleplay: Optional[str] = None, homepage: Optional[str] = None, redirect_uri: Optional[str] = None, verification_uri: Optional[str] = None, passthrough: Optional[Any] = None, req_id: Optional[int] = None) → int¶ Parameters: - app_update (int) – Application app_id.
- name (str) – Application name.
- scopes (List) – Change scopes will revoke all user’s grants and log them out.
- app_markup_percentage (Optional[Union[int, float, Decimal]]) – [Optional] Markup to be added to contract prices (as a percentage of contract payout).
- appstore (Optional[str]) – [Optional] Application’s App Store URL (if applicable).
- github (Optional[str]) – [Optional] Application’s GitHub page (for open-source projects).
- googleplay (Optional[str]) – [Optional] Application’s Google Play URL (if applicable).
- homepage (Optional[str]) – [Optional] Application’s homepage URL.
- redirect_uri (Optional[str]) – [Optional] The URL to redirect to after a successful login. Required if charging markup percentage.
- verification_uri (Optional[str]) – [Optional] Used when verify_email called. If available, a URL containing the verification token will send to the client’s email, otherwise only the token will be sent.
- passthrough (Optional[Any]) – [Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.
- req_id (Optional[int]) – [Optional] Used to map request to response.
Returns: req_id
Return type: int
Example¶
binary.api.app_update(
999
appstore='https://itunes.apple.com/test_app'
github='https://github.com/test_org/app'
googleplay='https://play.google.com/store/apps/details?id=test.app'
homepage='https://test.example.com/'
name='Test Application'
redirect_uri='https://test.example.com/redirect'
scopes=['read', 'trade']
verification_uri='https://test.example.com/verify'
)
See also