Social
Social account integration endpoints
Checks if a user has an existing Akifast account using their UID.
Business Logic:
Verifies if the provided UID exists in the
SocialAccountrecords for the 'akifast' provider.
CSRF token for write operations (POST, PUT, PATCH, DELETE). Required for security when using session authentication. Obtain token from cookie 'csrftoken' or meta tag in HTML.
abc123def456ghi789Session ID and CSRF token cookies.
Format: sessionid=<id>; osessionid=<id>; csrftoken=<token>
sessionid=abc123def456; osessionid=abc123def456; csrftoken=xyz789The unique identifier for the Akifast social account. Validated against existing social accounts.
Account exists
No content
Invalid UID or account does not exist
POST /social/has-akifast/ HTTP/1.1
Host: sandbox.akinon.com
X-CSRFToken: abc123def456ghi789
Cookie: sessionid=abc123def456; osessionid=abc123def456; csrftoken=xyz789
Content-Type: application/json
Accept: */*
Content-Length: 14
{
"uid": "text"
}No content
Renders the social signup form.
Note: This endpoint returns HTML content for the signup page.
HTML Signup Form
GET /social/signup/ HTTP/1.1
Host: sandbox.akinon.com
Accept: */*
HTML Signup Form
textCompletes the signup process for a social account.
Business Logic:
Handles the form submission for social account registration.
Creates the user account and links the social account.
CSRF token for write operations (POST, PUT, PATCH, DELETE). Required for security when using session authentication. Obtain token from cookie 'csrftoken' or meta tag in HTML.
abc123def456ghi789Session ID and CSRF token cookies.
Format: sessionid=<id>; osessionid=<id>; csrftoken=<token>
sessionid=abc123def456; osessionid=abc123def456; csrftoken=xyz789Successful signup (Ajax)
URL to redirect to after successful signup.
Redirects to the success URL (e.g., home page) upon successful signup (Standard).
Form validation error
POST /social/signup/ HTTP/1.1
Host: sandbox.akinon.com
X-CSRFToken: abc123def456ghi789
Cookie: sessionid=abc123def456; osessionid=abc123def456; csrftoken=xyz789
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 44
"email='name@gmail.com'&username='text'"{
"location": "text"
}Last updated
Was this helpful?

