Our users API can be used to add and manage users for AtomChat
1. List Users
Sample code
Header Parameters - api-key
Form Parameters
- Page offset – offset (Optional)
- The maximum number of results – limit (Optional)
2. Create Users
For CreateUser:
POST - https://api.cometondemand.net/api/v2/createUser
Header Parameters – api-key
Form Parameters
- The Unique User ID – UID (Required)
- User's Name – name (Required)
- User's Avatar URL (Image) – avatarURL (Optional)
- User's Profile URL – profileURL (Optional)
- User's Role – role (Optional)
- User’s Email – email (Optional)
3. Get User
For getUser:
POST - https://api.cometondemand.net/api/v2/getUser
Header Parameters
Header Parameters – api-key
Form Parameters
- Mandatory UID - UID
- optionalString - returnFriends - true or false
- optionalString - returnJoinedGroups - true or false
4. Get User Status
POST - https://api.cometondemand.net/api/v2/getUserStatus
Header Parameters – api-key
Form Parameters
- Mandatory UIDs - UIDs (comma separated)
5. Delete User
POST - https://api.cometondemand.net/api/v2/deleteUser
Header Parameters – api-key
Form Parameters
- Mandatory UID - UID
6. Update User
POST - https://api.cometondemand.net/api/v2/updateUser
Header Parameters – api-key
Form Parameters
- The Unique User ID – UID (Required)
- User's Name – name (Optional)
- User's Avatar URL (Image) – avatarURL (Optonial)
- User's Profile URL – profileURL (Optonial)
- User's Role – role (Optonial)
- User’s Email – email (Optional)
7. Add Friends
POST - https://api.cometondemand.net/api/v2/addFriends
Header Parameters – api-key
- Mandatory Friends’ UID - friendsUID (Comma Separated )
- Optional - clearExisting - true or false (Default false)
8. Delete Friends
POST - https://api.cometondemand.net/api/v2/deleteFriends
Header Parameters
Header Parameters – api-key
- Mandatory UID – UID
- Mandatory Friends’ UID - friendsUID (Comma Separated )
9. Block User
POST - https://api.cometondemand.net/api/v2/blockUser
Unblock User
POST - https://api.cometondemand.net/api/v2/unblockUser
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article