forked from sjorssnoeren/api-documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing python code examples for profiles api
- Loading branch information
Cesco van Zundert
authored and
Tom Hendrikx
committed
Jun 14, 2021
1 parent
efaddc9
commit 4c2512e
Showing
12 changed files
with
140 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,6 +135,25 @@ Example | |
"mode" => "live", | ||
]); | ||
.. code-block:: python | ||
:linenos: | ||
from mollie.api.client import Client | ||
mollie_client = Client() | ||
mollie_client.set_access_token('access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ') | ||
profile = mollie_client.profiles.create( | ||
data={ | ||
'name': 'My website name', | ||
'website': 'https://www.mywebsite.com', | ||
'email': '[email protected]', | ||
'phone': '+31208202070', | ||
'categoryCode': '5399', | ||
'mode': 'live', | ||
} | ||
) | ||
.. code-block:: ruby | ||
:linenos: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,6 +137,25 @@ Example | |
$profile->categoryCode = "5399"; | ||
$updatedProfile = $profile->update(); | ||
.. code-block:: python | ||
:linenos: | ||
from mollie.api.client import Client | ||
mollie_client = Client() | ||
mollie_client.set_access_token('access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ') | ||
profile = mollie_client.profiles.update( | ||
'pfl_v9hTwCvYqw', | ||
data={ | ||
'name': 'My website name - Update 1', | ||
'website': 'https://www.mywebsite2.com', | ||
'email': '[email protected]', | ||
'phone': '+31208202070', | ||
'categoryCode': '5399', | ||
}, | ||
) | ||
.. code-block:: ruby | ||
:linenos: | ||
|