Get Account
curl --request GET \
--url https://app.proxy-layer.com/api/v1/account \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.proxy-layer.com/api/v1/account', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.proxy-layer.com/api/v1/account"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.proxy-layer.com/api/v1/account', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "user_01JQ8A",
"name": "Alex",
"balanceCents": 2500,
"mode": "live",
"scopes": [
"account:read",
"orders:read"
]
}基础
获取账号
Returns the connected account ID, name, wallet balance in USD cents, mode, and granted scopes.
GET
/
api
/
v1
/
account
Get Account
curl --request GET \
--url https://app.proxy-layer.com/api/v1/account \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.proxy-layer.com/api/v1/account', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.proxy-layer.com/api/v1/account"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.proxy-layer.com/api/v1/account', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "user_01JQ8A",
"name": "Alex",
"balanceCents": 2500,
"mode": "live",
"scopes": [
"account:read",
"orders:read"
]
}授权
bearerAuthoauth2
响应
Connected account.