Skip to content

Commit

Permalink
Merge pull request #125 from nevermined-io/feat/add-nvm-api-keys
Browse files Browse the repository at this point in the history
feat: add nvm api keys tutorial
  • Loading branch information
eruizgar91 authored Jun 3, 2024
2 parents a41ebad + 8ebcc82 commit 6600803
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/tutorials/integration/nextjs-react-payments.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 3
sidebar_position: 5
description: How to integrate the Nevermined Payments library in a react application
---

Expand Down
21 changes: 21 additions & 0 deletions docs/tutorials/integration/nvm-api-keys.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
sidebar_position: 4
description: What is a Nvm Api Key and how to obtain it
---

# What is a Nvm Api Key? How to obtain it and how to use it

A Nevermined Api key is the simpler way to integrate with the Nevermined ecosystem. It's a string that contains data that identifies the session key of the account abstraction and some extra data as the marketplace auth token. It works similar to a jwt but for blockchain accounts. You can find more in [zeroDev docs](https://docs.zerodev.app/sdk/plugins/session-keys).

## How to obtain a Nvm Api Key

1. Go to the [Nevermined App](https://app.nevermined.app/).
2. Click on the `Account` button on the top right corner.
![Profile dropdwonw](/images/tutorials/NVM_api_key_profile_dropdown.jpeg)
3. Go to the API tab. Click on the `Generate Nvm Api Key` button.
![Generate Nvm Api Key](/images/tutorials/NVM_api_key_generation_page.jpeg)
4. Sign the session key. It will take some seconds.
5. Copy the generated Nvm Api Key. It will be only shown once.
![Copy Nvm Api Key](/images/tutorials/NVM_api_key_copy.jpeg)
6. You can see the list of generated Nvm Api Keys in the API tab. And you can revoke them if needed.
![List of Nvm Api Keys](/images/tutorials/NVM_api_key_list.jpeg)
13 changes: 7 additions & 6 deletions docs/tutorials/integration/python-integration.mdx
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
---
sidebar_position: 3
sidebar_position: 6
description: How to integrate the Nevermined Payments Python library
---

# Tutorial on how to use the Nevermined Payments Protocol in Python

The objective of this library is to make possible the integration of Nevermined payments in the Python code ecosystem. This library provides a set of functions to interact with the Nevermined network, including the ability to register subscriptions and subscribe to web services and get the JWT access token to call them.

:::info

In a previous tutorial we showed [what is a Nvm Api Key and how to obtain it](nvm-api-keys).

:::

## Installation

Install the [nevermined payments library](https://pypi.org/project/payments-py/) using pip:
Expand All @@ -31,11 +37,6 @@ payments = Payments(nvm_api_key=nvm_api_key, environment=Environment.appTesting,
```

:::info

You can find your `nvm_api_key` in the [your profile page](https://testing.nevermined.app/en/account). Just click the button and sign the session key. It will take some seconds.

:::

### Using payments library

Expand Down
Binary file added static/images/tutorials/NVM_api_key_copy.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/tutorials/NVM_api_key_list.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6600803

Please sign in to comment.