Account
Quick Reference
Method |
Endpoint |
Description |
|---|---|---|
POST |
/api/account/register |
|
POST |
/api/account/sendConfirmation |
|
POST |
/api/account/confirm |
|
POST |
/api/account/forgot |
|
GET |
/api/account/verifyresettoken |
|
POST |
/api/account/resetpassword |
|
GET |
/api/account/profile |
|
POST |
/api/account/setpassword |
|
PUT |
/api/account/paymentsource/{sourceId} |
|
DELETE |
/api/account/paymentsource/{sourceId} |
POST /api/account/register
Example Request:
from ABConnect import ABConnectAPI
# Initialize the API client
api = ABConnectAPI()
# Make the API call
response = api.raw.post(
"/api/account/register"
,
data=
{
"example": "data"
}
)
# Process the response
print(response)
ab api raw post /api/account/register
curl -X POST \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"example": "data"
}' \
'https://api.abconnect.co/api/account/register'
Sample Response:
1{
2 "id": "789e0123-e89b-12d3-a456-426614174002",
3 "status": "created",
4 "message": "Resource created successfully"
5}
POST /api/account/sendConfirmation
Example Request:
from ABConnect import ABConnectAPI
# Initialize the API client
api = ABConnectAPI()
# Make the API call
response = api.raw.post(
"/api/account/sendConfirmation"
,
data=
{
"example": "data"
}
)
# Process the response
print(response)
ab api raw post /api/account/sendConfirmation
curl -X POST \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"example": "data"
}' \
'https://api.abconnect.co/api/account/sendConfirmation'
Sample Response:
1{
2 "id": "789e0123-e89b-12d3-a456-426614174002",
3 "status": "created",
4 "message": "Resource created successfully"
5}
POST /api/account/confirm
Example Request:
from ABConnect import ABConnectAPI
# Initialize the API client
api = ABConnectAPI()
# Make the API call
response = api.raw.post(
"/api/account/confirm"
,
data=
{
"example": "data"
}
)
# Process the response
print(response)
ab api raw post /api/account/confirm
curl -X POST \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"example": "data"
}' \
'https://api.abconnect.co/api/account/confirm'
Sample Response:
1{
2 "id": "789e0123-e89b-12d3-a456-426614174002",
3 "status": "created",
4 "message": "Resource created successfully"
5}
POST /api/account/forgot
Example Request:
from ABConnect import ABConnectAPI
# Initialize the API client
api = ABConnectAPI()
# Make the API call
response = api.raw.post(
"/api/account/forgot"
,
data=
{
"example": "data"
}
)
# Process the response
print(response)
ab api raw post /api/account/forgot
curl -X POST \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"example": "data"
}' \
'https://api.abconnect.co/api/account/forgot'
Sample Response:
1{
2 "id": "789e0123-e89b-12d3-a456-426614174002",
3 "status": "created",
4 "message": "Resource created successfully"
5}
GET /api/account/verifyresettoken
Parameters:
Query Parameters:
username (string, query): No description available
token (string, query): No description available
Example Request:
from ABConnect import ABConnectAPI
# Initialize the API client
api = ABConnectAPI()
# Make the API call
response = api.raw.get(
"/api/account/verifyresettoken"
)
# Process the response
print(response)
ab api raw get /api/account/verifyresettoken
curl -X GET \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
'https://api.abconnect.co/api/account/verifyresettoken'
Sample Response:
1{
2 "status": "success",
3 "data": {}
4}
POST /api/account/resetpassword
Example Request:
from ABConnect import ABConnectAPI
# Initialize the API client
api = ABConnectAPI()
# Make the API call
response = api.raw.post(
"/api/account/resetpassword"
,
data=
{
"example": "data"
}
)
# Process the response
print(response)
ab api raw post /api/account/resetpassword
curl -X POST \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"example": "data"
}' \
'https://api.abconnect.co/api/account/resetpassword'
Sample Response:
1{
2 "id": "789e0123-e89b-12d3-a456-426614174002",
3 "status": "created",
4 "message": "Resource created successfully"
5}
GET /api/account/profile
Example Request:
from ABConnect import ABConnectAPI
# Initialize the API client
api = ABConnectAPI()
# Make the API call
response = api.raw.get(
"/api/account/profile"
)
# Process the response
print(response)
ab api raw get /api/account/profile
curl -X GET \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
'https://api.abconnect.co/api/account/profile'
Sample Response:
1{
2 "status": "success",
3 "data": {}
4}
POST /api/account/setpassword
Example Request:
from ABConnect import ABConnectAPI
# Initialize the API client
api = ABConnectAPI()
# Make the API call
response = api.raw.post(
"/api/account/setpassword"
,
data=
{
"example": "data"
}
)
# Process the response
print(response)
ab api raw post /api/account/setpassword
curl -X POST \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"example": "data"
}' \
'https://api.abconnect.co/api/account/setpassword'
Sample Response:
1{
2 "id": "789e0123-e89b-12d3-a456-426614174002",
3 "status": "created",
4 "message": "Resource created successfully"
5}
PUT /api/account/paymentsource/{sourceId}
Parameters:
Path Parameters:
sourceId (integer, path) (required): No description available
Example Request:
from ABConnect import ABConnectAPI
# Initialize the API client
api = ABConnectAPI()
# Make the API call
response = api.raw.put(
"/api/account/paymentsource/{sourceId}"
,
sourceId=789e0123-e89b-12d3-a456-426614174002
,
data=
{
"example": "data"
}
)
# Process the response
print(response)
ab api raw put /api/account/paymentsource/{sourceId} \
sourceId=789e0123-e89b-12d3-a456-426614174002
curl -X PUT \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"example": "data"
}' \
'https://api.abconnect.co/api/account/paymentsource/789e0123-e89b-12d3-a456-426614174002'
Sample Response:
1{
2 "id": "123e4567-e89b-12d3-a456-426614174000",
3 "status": "updated",
4 "message": "Resource updated successfully"
5}
DELETE /api/account/paymentsource/{sourceId}
Parameters:
Path Parameters:
sourceId (integer, path) (required): No description available
Example Request:
from ABConnect import ABConnectAPI
# Initialize the API client
api = ABConnectAPI()
# Make the API call
response = api.raw.delete(
"/api/account/paymentsource/{sourceId}"
,
sourceId=789e0123-e89b-12d3-a456-426614174002
)
# Process the response
print(response)
ab api raw delete /api/account/paymentsource/{sourceId} \
sourceId=789e0123-e89b-12d3-a456-426614174002
curl -X DELETE \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
'https://api.abconnect.co/api/account/paymentsource/789e0123-e89b-12d3-a456-426614174002'
Sample Response:
1{
2 "status": "success",
3 "message": "Resource deleted successfully"
4}