Skip to content

Commit

Permalink
Updates Creating app example
Browse files Browse the repository at this point in the history
  • Loading branch information
ksysoev committed Jul 25, 2023
1 parent bc8326d commit 3c628f9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/creating_app/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Create Deriv App

This Go script demonstrates how to create a new Deriv app using the Deriv API. The script uses the `deriv-api` and `deriv-api/schema` packages to interact with the Deriv API and send requests to create a new app.

To use this script, you will need to replace the `ApiToken` constant with your own API token. You can obtain an API token by logging in to your Deriv account and generating a new token in the API tokens section.

The script first creates a new `DerivAPI` instance and authorizes the connection using the provided API token. It then creates a new app registration request with a name and a set of scopes. The script also includes optional fields for specifying a redirect URI, verification URI, markup percentage, and general app info.

Finally, the script sends the app registration request to the Deriv API and logs the ID of the newly created app. You can customize the app registration request and the optional fields to suit your specific needs.

Note that this script is provided as an example and may require modifications to work with your specific environment and use case.
File renamed without changes.

0 comments on commit 3c628f9

Please sign in to comment.