Skip to content

Returns the wallet URL for the current user

GET
/api/user/current/{walletType}/wallet

Authorizations

api_key
Type: API Key (header: X-CSRF-Token)

Parameters

Path Parameters

walletType*

Type of wallet to generate (google or apple)

Typestring
Required
Enumgoogle, apple

Responses

Not logged in.
Authorization
api_key
Variables
Key
Value
walletType*
cURL
curl -X GET \
'http://localhost/api/user/current/{walletType}/wallet'

Samples

cURL
curl -X GET http://localhost/api/user/current/{walletType}/wallet
JavaScript
fetch("http://localhost/api/user/current/{walletType}/wallet")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/user/current/{walletType}/wallet");
Python
import requests
response = requests.get("http://localhost/api/user/current/{walletType}/wallet")
print(response.json())