Skip to content

Commit

Permalink
fix: implemented suggested changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Arindam200 authored Apr 22, 2024
1 parent d4c5483 commit a7c81d9
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,32 @@ with pieces_os_client.ApiClient(configuration) as api_client:
</details>
<details>
<summary>Create a new Asset</summary>
When integrating your application with Pieces OS, creating a new asset is a fundamental task that enables you to manage your resources effectively. This code snippet demonstrates how to accomplish this task using the Pieces OS API.
After establishing a connection with the API client and instantiating the Assets API class, you can call the `assets_create_new_asset` method to create the asset.You can customize the asset creation process by setting parameters such as `transferables` and `seed`.
```python
# Enter a context with an instance of the API client
with pieces_os_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = Assets API(api_client)
transferables = True # bool | This is a boolean that will decided if we are want to return the transferable data (default) or not(performance enhancement) (optional)
seed = pieces_os_client.Seed() # Seed | (optional)
try:
# /assets/create [POST] Scoped to Asset
api_response = api_instance.assets_create_new_asset(transferables=transferables, seed=seed)
print("The response of AssetsApi->assets_create_new_asset:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AssetsApi->assets_create_new_asset: %s\n" % e)
```
</details>
<details>
<summary>Get your Assets Snapshot</summary>
Expand Down

0 comments on commit a7c81d9

Please sign in to comment.