User APIs
POSTAdd Authentication Channel
- Description
- A new login mechanism can be added for a user using this API.
- Request Endpoint
- POST https://<Example api server address>/user/auth
- Parameters
- None.
- cURL syntax
curl --include \ --request POST \ --header "Content-Type: application/json" \ --data-binary "{ \"userId\": \"453af1f1-7b5c-418e-a2d3-71f074d3a018\", \"loginType\": \"TWITTER\", \"socialId\": \"xuy5gk\", \"socialEmail\": \"san.sh555@gmail.com\", \"socialProfileName\": \"Twitter\" }" \ 'https://core.dev.Example.net/api/user/auth'
- POST body attributes (JSON)
Attribute Type Use Description userId
String Required UUID of a user. loginType
String Required Login Type (can be "EMAIL", "MOBILE", "GOOGLE", "FACEBOOK", "TWITTER"). socialId
String Conditional Social Id of the user in case of facebook, google or twitter login (mandatory for google, facebook or twitter login). socialEmail
String Conditional Social email address of the user in case of email login (mandatory for email login). socialProfileName
String Conditional Profile name of a social app. - POST body
Headers: Content-Type: application/json
{ "userId": "453af1f1-7b5c-418e-a2d3-71f074d3a018", "loginType": "TWITTER", "socialId": "xuy5gk", "socialEmail": "san.sh555@gmail.com", "socialProfileName": "Twitter" }
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": { "id": "453af1f1-7b5c-418e-a2d3-71f074d3a018", "deleted": false, "addresses": null, "devices": [ { "id": "19454557-9e13-4335-93fe-d574f03a7577", "deleted": false, "description": "Old Device", "deviceStatus": "NORMAL", "manufacturer": "Apple", "model": "iPhone 5", "os": "iOS 9", "udid": "2083718938012321038243", "simStateHashCode": null, "simCardState": null, "deletedUdid": null, "deletedBy": null, "deletedOn": null, "name": "Moto", "brand": null, "androidID": "etr657y", "advertiserID": null, "operator": null, "country": "India", "language": "English", "screenWidthInPixels": null, "screenHeightInPixels": null, "screenWidthInInches": null, "screenHeightInInches": null } ], "emailAuthenticationChannels": [ { "addedOn": 1474124449464, "blockStatus": "NORMAL", "deletedOn": null, "emailAddress": "abc@gmail.com", "emailPinResetStatus": "RESET_NA", "emailVerificationStatus": "VERIFICATION_PENDING", "lastUsedOn": 1474124449464, "loginType": "EMAIL", "primary": false, "deleted": false, "recycleEmailAddress": null } ], "firstName": "Shruti", "fullName": "ABC DEF", "groupTag": [ "FACEBOOK", "Apple", "United Kingdom", "iOS 9", "1234234", "iPhone 5", "EMAIL", "TWITTER" ], "lastName": "Nagarkar", "locationCountry": "United Kingdom", "locationZipCode": "1234234", "mobileAuthenticationChannels": [], "pinCreated": true, "profileImagePath": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/https://jfjh.jdhhg.png", "profileName": "ABC", "registrationDate": 1474087326311, "socialAuthenticationChannels": [ { "addedOn": 1474262514664, "blockStatus": "NORMAL", "deletedOn": null, "lastUsedOn": 1474262514664, "loginType": "TWITTER", "socialId": "xuy5g", "deleted": false, "recycleSocialId": null, "emailAddress": "san.sh555@gmail.com", "profileName": "facebook" }, { "addedOn": 1474262597961, "blockStatus": "NORMAL", "deletedOn": null, "lastUsedOn": 1474262597961, "loginType": "TWITTER", "socialId": "xuy5gk", "deleted": false, "recycleSocialId": null, "emailAddress": "san.sh555@gmail.com", "profileName": "Twitter" } ], "status": "EXISTING", "timezone": null, "userSetting": { "autoUpdateBetcadeApp": true, "autoUpdateDownloadedApps": true, "monthlyDepositMaxLimit": 0, "monthlyDepositMaxLimitCurrency": "GBP", "prefillUserInfoInCasino": true, "receiveEmailReceipt": true, "receiveNotifications": true, "shareRegistrationInfo": true, "userEmailProvided": true, "versionOfDownloadedBetcadeApp": "v1", "wifiDownloadLimitInMB": 0, "preferredCategories": [], "autoSaveCard": true, "autoAddHomeIcon": true, "receiveUpdateNotifications": true, "receiveAutoUpdatedNotifications": true, "receiveRecommendationNotifications": true, "appSetting": { "autoUpdateApps": 2, "addIconHomeScreen": false, "saveNewCreditOrDebitCards": true, "appUpdatesAvailable": true, "appsWereAutoUpdated": true, "recommendedContentAvailable": true } }, "verified": true, "pinResetDate": null, "kycStatus": "KYC_DELAY", "singularId": null, "acquisitionIds": null, "userAuditInfo": { "initialLoginDate": 1474087326311, "initialLoginIp": "127.0.0.1", "initialLoginLocation": " ", "initialRegistrationDate": null, "initialRegistrationIp": null, "initialRegistrationLocation": null }, "email": "san.sh555@gmail.com", "phone": "+919874654244", "dob": 663359640000, "testUser": null }, "detail": null, "error": false, "message": "Adding login channel successful" }
POSTChange Pic
- Description
- Allows a user to change their profile picture.
- Request Endpoint
- POST https://<Example api server address>/user/{id}/profile/pic
- Parameters
Parameter Type Use Description id String Required uuid of the User. - cURL syntax
curl --include \ --request POST \ 'https://core.dev.Example.net/api/user/id/profile/pic'
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "error": false, "message": "Profile Image upload is successfully", "detail": null, "data": true }
POSTCreate (User PIN)
- Description
- A pin can be created for a user using this API.
- Request Endpoint
- POST https://<Example api server address>/user/pin
- Parameters
- None.
- cURL syntax
curl --include \ --request POST \ --header "Content-Type: application/json" \ --data-binary "{ \"loginType\": \"EMAIL\", \"emailAddress\": \"abc@gmail.com\", \"pin\": \"1234\" }" \ 'https://core.dev.Example.net/api/user/pin'
- POST body attributes (JSON)
Attribute Type Use Description loginType
String Required The login type (Can be "EMAIL", "MOBILE", "GOOGLE", "FACEBOOK", "TWITTER"). emailAddress
String Conditional Email address of the user in case of email login (mandatory for email login). mobileNumber
String Conditional Mobile number of the user in case of mobile login (mandatory for mobile login). socialId
String Conditional Social Id of the user in case of facebook, google or twitter login (mandatory for google, facebook or twitter login). pin
String Optional PIN for the user. Should be a valid 4 digit numeric string. - POST body
Headers: Content-Type: application/json
{ "loginType": "EMAIL", "emailAddress": "abc@gmail.com", "pin": "1234" }
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "error": false, "message": "Creating pin successful", "detail": null, "data": true }
POSTCreate SDK Record
- Description
- Allows a user to save SDK information in a DB.
- Request Endpoint
- POST https://<Example api server address>/user/sdkinfo
- Parameters
- None.
- cURL syntax
curl --include \ --request POST \ --header "Content-Type: application/json" \ --data-binary "{ \"userId\": \"77fc6409-9e7c-4d1d-8c6c-160e95004dc6\", \"applicationId\": \"23dcad17-73d9-4bef-bca4-f12e7f8e249b\", \"udid\":\"gkfgji7-hg-876-hdfgfdgggb\", \"deviceDescription\":\"good\", \"deviceManufacturer\":\"rt67\", \"deviceModel\":\"ng-09\", \"deviceOS\":\"android\", \"telephoneAvailability\":\"ffd\", \"carriers\":\"3435\", \"phoneNetworkType\":\"G3\", \"dataNetworkType\":\"WIFI\", \"ipAddress\":\"34.454.6.78\", \"action\": \"Deposit\" }" \ 'https://core.dev.Example.net/api/user/sdkinfo'
- POST body attributes (JSON)
Attribute Type Use Description deviceOS
String Optional Operating system of a device. telephoneAvailability
String Optional Availability of a telephone. carriers
String Optional Mobile carriers. phoneNetworkType
String Optional A phone network type. dataNetworkType
String Optional A data network type. ipAddress
String Optional An ip address. action
String Optional Indicates an action taken by a user. - POST body
Headers: Content-Type: application/json
{ "userId": "77fc6409-9e7c-4d1d-8c6c-160e95004dc6", "applicationId": "23dcad17-73d9-4bef-bca4-f12e7f8e249b", "udid": "gkfgji7-hg-876-hdfgfdgggb", "deviceDescription": "good", "deviceManufacturer": "rt67", "deviceModel": "ng-09", "deviceOS": "android", "telephoneAvailability": "ffd", "carriers": "3435", "phoneNetworkType": "G3", "dataNetworkType": "WIFI", "ipAddress": "34.454.6.78", "action": "Deposit" }
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": { "id": "389b8e33-b1f7-4faa-be00-b4b0cfbaac32", "updatedBy": "", "userId": "77fc6409-9e7c-4d1d-8c6c-160e95004dc6", "applicationId": "23dcad17-73d9-4bef-bca4-f12e7f8e249b", "udid": "gkfgji7-hg-876-hdfgfdgggb", "deviceDescription": "good", "deviceManufacturer": "rt67", "deviceModel": "ng-09", "deviceOS": "android", "telephoneAvailability": "ffd", "carriers": "3435", "phoneNetworkType": "G3", "dataNetworkType": "WIFI", "ipAddress": "34.454.6.78", "action": "Deposit" }, "detail": null, "error": false, "message": "Creating Sdk Information successful" }
POSTCreate User Note
- Description
- Allows a client to create a note for a user.
- Request Endpoint
- POST https://<Example api server address>/user/note
- Parameters
- None.
- cURL syntax
curl --include \ --request POST \ --header "Content-Type: application/json" \ --data-binary "{ \"userId\": \"d53d9d0a-88a8-49a3-965b-416da7e4d889\", \"content\": \"User happy\" }" \ 'https://core.dev.Example.net/api/user/note'
- POST body attributes (JSON)
Attribute Type Use Description userId
String Required UUID of a User. content
String Required Content of the note. - POST body
Headers: Content-Type: application/json
{ "userId": "d53d9d0a-88a8-49a3-965b-416da7e4d889", "content": "User happy" }
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": { "id": "2fbb8d7f-e6fb-43d8-9eaf-4f20008da17f", "deleted": false, "user": { "id": "c15f25aa-1b4e-4f9d-918f-173074bb8107", "deleted": false, "addresses": null, "devices": [ { "id": "54171238-95b9-4f4f-bb84-cc4d5df045f0", "deleted": false, "description": "Old Device", "deviceStatus": "NORMAL", "manufacturer": "Apple", "model": "iPhone 5", "os": "iOS 9", "udid": "2083718938012321038243", "simStateHashCode": null, "simCardState": null, "deletedUdid": null, "deletedBy": null, "deletedOn": null } ], "emailAuthenticationChannels": [ { "addedOn": 1468583650199, "blockStatus": "NORMAL", "deletedOn": null, "emailAddress": "navyag@gmail.com", "emailPinResetStatus": "RESET_COMPLETE", "emailVerificationStatus": "VERIFIED", "lastUsedOn": 1468583650199, "loginType": "EMAIL", "primary": true, "deleted": false, "recycleEmailAddress": null } ], "firstName": "Shruti", "fullName": "Navya G", "groupTag": [ "Apple", "United Kingdom", "iOS 9", "1234234", "EMAIL", "iPhone 5" ], "lastName": "Nagarkar", "locationCountry": "United Kingdom", "locationZipCode": "1234234", "mobileAuthenticationChannels": [], "pinCreated": true, "profileImagePath": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/default-profile-image.png", "profileName": "Navyag", "registrationDate": 1468583650198, "socialAuthenticationChannels": [], "status": "EXISTING", "timezone": null, "userSetting": { "autoUpdateBetcadeApp": true, "autoUpdateDownloadedApps": true, "monthlyDepositMaxLimit": 0, "monthlyDepositMaxLimitCurrency": "GBP", "prefillUserInfoInCasino": true, "receiveEmailReceipt": true, "receiveNotifications": true, "shareRegistrationInfo": true, "userEmailProvided": true, "versionOfDownloadedBetcadeApp": "v1", "wifiDownloadLimitInMB": 0, "preferredCategories": [], "autoSaveCard": true, "autoAddHomeIcon": true, "receiveUpdateNotifications": true, "receiveAutoUpdatedNotifications": true, "receiveRecommendationNotifications": true, "appSetting": { "autoUpdateApps": true, "addIconHomeScreen": false, "saveNewCreditOrDebitCards": true, "appUpdatesAvailable": true, "appsWereAutoUpdated": true, "recommendedContentAvailable": true } }, "verified": true, "pinResetDate": null, "kycStatus": "KYC_FAIL", "singularId": null, "acquisitionIds": null, "userAuditInfo": null, "email": null, "phone": null, "dob": null, "testUser": null }, "userId": "c15f25aa-1b4e-4f9d-918f-173074bb8107", "content": "Test", "recordedDate": 1472049779325 }, "detail": null, "error": false, "message": "Creating user note successful" }
DELETEDelete Account
- Description
- Allows a user to delete their account.
- Request Endpoint
- DELETE https://<Example api server address>/user/{id}
- Parameters
Parameter Type Use Description id UUID Required uuid of the User. - cURL syntax
curl --include \ --request DELETE \ --header "Content-Type: application/json" \ --data-binary "{ \"deviceUdid\" : \"d49b-3937-49\", \"reasonForDeleting\" : \"User Interface is not friendly\", \"deletedBy\" : \"Xyz\" }" \ 'https://core.dev.Example.net/api/user/id'
- DELETE body attributes (JSON)
Attribute Type Use Description deviceUdid
String Required UDID of the device. reasonForDeleting
String Optional Reason for deleting the account. deletedBy
String Required Identity of the person who changed the status. - DELETE body
Headers: Content-Type: application/json
{ "deviceUdid": "d49b-3937-49", "reasonForDeleting": "User Interface is not friendly", "deletedBy": "Xyz" }
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": true, "detail": null, "error": false, "message": "Deleted user successfully" }
DELETEDelete User Profile Image
- Description
- Deletes the user profile image from a user profile.
- Request Endpoint
- DELETE https://<Example api server address>/user/{id}/profile/pic
- Parameters
Parameter Type Use Description id String Required uuid of the User. - cURL syntax
curl --include \ --request DELETE \ --header "Content-Type: application/json" \ 'https://core.dev.Example.net/api/user/id/profile/pic'
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "error": false, "message": "Profile Image deleted successfully", "detail": null, "data": true }
GETFetch Categories With List of Applications Downloaded by a User
- Description
- Fetches categories with a list of applications downloaded by a user.
- Request Endpoint
- GET https://<Example api server address>/user/{id}/app/downloads/category
- Parameters
Parameter Type Use Description id String Required UUID of a user. - cURL syntax
curl --include \ 'https://core.dev.Example.net/api/user/id/app/downloads/category'
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": { "content": [ { "id": "e068a967-4da6-40b3-ae83-f7c3d4af533e", "deleted": false, "imageUrl": "http://www.google.com/betting.png", "name": "Poker 1", "description": "Some poker category", "videoUrl": "https://www.google.com/betting-video.mov", "iconUrl": "https://www.google.com/betting-icon.png", "colorCode": "#FFFFFF", "heroImageReference": "https://www.google.com/hero.png", "priority": 1, "deletedBy": null, "deletedOn": null, "apps": [ "8bbba7f9-a8dd-4b84-abc8-19899b2cf0a7", "1bbba7f9-a8dd-4b84-abc8-19899b2cf0a7" ] }, { "id": "86714a54-7325-4b63-b188-05e62d928539", "deleted": false, "imageUrl": "http://www.google.com/betting.png", "name": "EMkudkOYhW", "description": "Some poker category", "videoUrl": "https://www.google.com/betting-video.mov", "iconUrl": "https://www.google.com/betting-icon.png", "colorCode": "#FFFFFF", "heroImageReference": "https://www.google.com/hero.png", "priority": 1, "deletedBy": null, "deletedOn": null, "apps": [ "1bbba7f9-a8dd-4b84-abc8-19899b2cf0a7" ] } ], "last": true, "totalPages": 1, "totalElements": 2, "sort": null, "numberOfElements": 2, "first": true, "size": 70, "number": 0 }, "detail": null, "error": false, "message": "Fetching user downloaded applications by category." }
GETFetch Category With List of Applications Downloaded by a User for a Particular Category
- Description
- Fetches a casino with featured and latest applications.
- Request Endpoint
- GET https://<Example api server address>/user/{id}/app/downloads/category/{categoryid}
- Parameters
Parameter Type Use Description id String Required UUID of a user. categoryId String Required UUID of a category. - cURL syntax
curl --include \ 'https://core.dev.Example.net/api/user/id/app/downloads/category/categoryid'
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": { "id": "e068a967-4da6-40b3-ae83-f7c3d4af533e", "deleted": false, "imageUrl": "http://www.google.com/betting.png", "name": "Poker 1", "description": "Some poker category", "videoUrl": "https://www.google.com/betting-video.mov", "iconUrl": "https://www.google.com/betting-icon.png", "colorCode": "#FFFFFF", "heroImageReference": "https://www.google.com/hero.png", "priority": 1, "deletedBy": null, "deletedOn": null, "apps": [ "8bbba7f9-a8dd-4b84-abc8-19899b2cf0a7", "1bbba7f9-a8dd-4b84-abc8-19899b2cf0a7" ] }, "detail": null, "error": false, "message": "Fetching user downloaded applications by category." }
GETFetch User Criteria Attributes
- Description
- Fetches user attributes to build a criteria.
- Request Endpoint
- GET https://<Example api server address>/user/attributes
- Parameters
- None.
- cURL syntax
curl --include \ 'https://core.dev.Example.net/api/user/attributes'
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": { "lastName": "String", "loginType": "LoginType", "addresses.postal": "String", "addresses.city": "String", "devices.udid": "String", "addresses.street1": "String", "addresses.street2": "String", "addresses.street": "String", "firstName": "String", "emailAddress": "String", "phone": "String", "addresses.state": "String", "dob": "String", "socialId": "String", "addresses.country": "String", "email": "String", "status": "UserStatus" }, "detail": null, "error": false, "message": "Fetching all users attributes successful" }
GETFetch User Information
- Description
- Fetch a user’s information from a uuid.
- Request Endpoint
- GET https://<Example api server address>/user/{id}
- Parameters
Parameter Type Use Description id UUID Required The uuid of the user. - cURL syntax
curl --include \ 'https://core.dev.Example.net/api/user/id'
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "error": false, "message": "Fetching user detail successful", "detail": null, "data": { "id": "d2e59517-d98e-447a-87e5-567094702614", "firstName": "Vishwas ", "lastName": "Shashidhar", "fullName": "Vishwas Shashidhar", "profileName": "Vishwas", "profileImagePath": null, "registrationDate": 1448899629867, "birthDateDay": 12, "birthDateMonth": 1, "birthDateYear": 1945, "locationCountry": "India", "locationZipCode": "1234234", "timezone": null, "userSetting": null, "socialAuthenticationChannels": [], "emailAuthenticationChannels": [], "mobileAuthenticationChannels": [ { "primary": false, "mobileNumber": "+919845697457", "mobileVerificationStatus": "VERIFIED", "addedOn": 1448899629867, "lastUsedOn": 1448899629867 } ], "addresses": null, "status": "NEW", "verified": true, "pinResetDate": null } }
GETFetch User Login Types
- Description
- Fetches all login types available.
- Request Endpoint
- GET https://<Example api server address>/user/login/types
- Parameters
- None.
- cURL syntax
curl --include \ 'https://core.dev.Example.net/api/user/login/types'
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": { "FACEBOOK": "LoginType", "EMAIL": "LoginType", "type": "String", "TWITTER": "LoginType", "$VALUES": "LoginType[]", "GOOGLE": "LoginType", "MOBILE": "LoginType" }, "detail": null, "error": false, "message": "Fetching user login type values successful." }
GETFetch User Notes
- Description
- Allows a client to fetch the notes of a user.
- Request Endpoint
- GET https://<Example api server address>/user/note/{userId}
- Parameters
Parameter Type Use Description userId String Required UUID of the user. - cURL syntax
curl --include \ 'https://core.dev.Example.net/api/user/note/userId'
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": { "content": [ { "id": "2fbb8d7f-e6fb-43d8-9eaf-4f20008da17f", "deleted": false, "user": { "id": "c15f25aa-1b4e-4f9d-918f-173074bb8107", "deleted": false, "addresses": null, "devices": [ { "id": "54171238-95b9-4f4f-bb84-cc4d5df045f0", "deleted": false, "description": "Old Device", "deviceStatus": "NORMAL", "manufacturer": "Apple", "model": "iPhone 5", "os": "iOS 9", "udid": "2083718938012321038243", "simStateHashCode": null, "simCardState": null, "deletedUdid": null, "deletedBy": null, "deletedOn": null } ], "emailAuthenticationChannels": [ { "addedOn": 1468583650199, "blockStatus": "NORMAL", "deletedOn": null, "emailAddress": "navyag@gmail.com", "emailPinResetStatus": "RESET_COMPLETE", "emailVerificationStatus": "VERIFIED", "lastUsedOn": 1468583650199, "loginType": "EMAIL", "primary": true, "deleted": false, "recycleEmailAddress": null } ], "firstName": "Shruti", "fullName": "Navya G", "groupTag": [ "Apple", "United Kingdom", "iOS 9", "1234234", "EMAIL", "iPhone 5" ], "lastName": "Nagarkar", "locationCountry": "United Kingdom", "locationZipCode": "1234234", "mobileAuthenticationChannels": [], "pinCreated": true, "profileImagePath": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/default-profile-image.png", "profileName": "Navyag", "registrationDate": 1468583650198, "socialAuthenticationChannels": [], "status": "EXISTING", "timezone": null, "userSetting": { "autoUpdateBetcadeApp": true, "autoUpdateDownloadedApps": true, "monthlyDepositMaxLimit": 0, "monthlyDepositMaxLimitCurrency": "GBP", "prefillUserInfoInCasino": true, "receiveEmailReceipt": true, "receiveNotifications": true, "shareRegistrationInfo": true, "userEmailProvided": true, "versionOfDownloadedBetcadeApp": "v1", "wifiDownloadLimitInMB": 0, "preferredCategories": [], "autoSaveCard": true, "autoAddHomeIcon": true, "receiveUpdateNotifications": true, "receiveAutoUpdatedNotifications": true, "receiveRecommendationNotifications": true, "appSetting": { "autoUpdateApps": true, "addIconHomeScreen": false, "saveNewCreditOrDebitCards": true, "appUpdatesAvailable": true, "appsWereAutoUpdated": true, "recommendedContentAvailable": true } }, "verified": true, "pinResetDate": null, "kycStatus": "KYC_FAIL", "singularId": null, "acquisitionIds": null, "userAuditInfo": null, "email": null, "phone": null, "dob": null, "testUser": null }, "userId": null, "content": "Test", "recordedDate": 1472049779325 } ], "last": true, "totalPages": 1, "totalElements": 1, "size": 70, "number": 0, "sort": null, "first": true, "numberOfElements": 1 }, "detail": null, "error": false, "message": "Fetching user notes successful" }
GETFetch User Private Information
- Description
- Fetches user private information like DOB, emailAddress, mobileNumber, BillingAddress.
- Request Endpoint
- GET https://<Example api server address>/user/{userid}/private/info
- Parameters
Parameter Type Use Description userid String Required UUID of a User. - cURL syntax
curl --include \ 'https://core.dev.Example.net/api/user/userid/private/info'
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": { "dob": "1991-09-15", "emailAddress": "rn.shruti@gmail.com", "mobileNumber": "+918050022027", "billingAddress": { "street": "3rd cross", "street2": "wilson garden", "city": "Bangalore", "state": "karnataka", "postalCode": "134413", "countryCode": "IND" } }, "detail": null, "error": false, "message": "Fetching user private info successful" }
POSTFetch Users by Multiple Criteria
- Description
- Fetches users with multiple criteria.
- Request Endpoint
- POST https://<Example api server address>/user/fetch/bycriteria
- Parameters
- None.
- cURL Syntax
curl --include \ --request POST \ --header "Content-Type: application/json" \ --data-binary "{ \"searchCriteriaList\" : [ { \"field\" : \"addresses.country\", \"startValue\" : \"kingdon\" } ] }" \ 'https://core.dev.Example.net/api/user/fetch/bycriteria'
- POST body
Headers: Content-Type: application/json
{ "searchCriteriaList": [ "field": "addresses.country", "startValue": "kingdon" ] }
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": { "content": [ { "id": "9a33492a-0a9b-4eef-87cd-f4fdcd8a705a", "createdOn": 1475730250180, "lastModifiedOn": 1479887647762, "updatedBy": "", "deleted": false, "addresses": [ { "id": "e2459859-7de1-4e5c-a363-e6428ec4c9b6", "createdOn": 1479887647733, "lastModifiedOn": 1479887647733, "updatedBy": "", "deleted": false, "addressType": "BILLING", "city": "ewhere", "country": "Kingdon", "countryCode": null, "county": "Clark gjv", "postal": "89105", "state": "stsd", "street": null, "street1": "Tes", "street2": "fsf", "street3": "35sf" } ], "devices": [ { "id": "9146350a-8104-4fd3-aa2c-601afc43f2a9", "createdOn": 1474966270642, "lastModifiedOn": 1474966270642, "updatedBy": "", "deleted": false, "description": "Old Device", "deviceStatus": "NORMAL", "manufacturer": "Apple", "model": "iPhone 5", "os": "iOS 9", "udid": "2083718938012321038243", "simStateHashCode": null, "simCardState": null, "deletedUdid": null, "deletedBy": null, "deletedOn": null, "name": "Moto", "brand": null, "androidID": "etr657y", "advertiserID": null, "operator": null, "country": "India", "language": "English", "screenWidthInPixels": null, "screenHeightInPixels": null, "screenWidthInInches": null, "screenHeightInInches": null } ], "emailAuthenticationChannels": [], "firstName": "Shruti", "fullName": "Sudipta Bhaumik", "groupTag": [ "FACEBOOK", "Apple", "United Kingdom", "iOS 9", "1234234", "iPhone 5", "india", "260057", "ewhere", "stsd", "Kingdon", "Clark gjv", "89105" ], "lastName": "Nagarkar", "locationCountry": "india", "locationZipCode": "260057", "mobileAuthenticationChannels": [], "pinCreated": true, "profileImagePath": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/default-profile-image.png", "profileName": "profile", "registrationDate": 1475730247428, "socialAuthenticationChannels": [ { "addedOn": 1475730250140, "blockStatus": "NORMAL", "deletedOn": null, "lastUsedOn": 1475730250140, "loginType": "FACEBOOK", "socialId": "sef4t434", "deleted": false, "recycleSocialId": null, "emailAddress": null, "profileName": null } ], "status": "NEW", "timezone": "IST", "userSetting": { "autoUpdateBetcadeApp": true, "autoUpdateDownloadedApps": true, "monthlyDepositMaxLimit": 0, "monthlyDepositMaxLimitCurrency": "GBP", "prefillUserInfoInCasino": true, "receiveEmailReceipt": true, "receiveNotifications": true, "shareRegistrationInfo": true, "userEmailProvided": true, "versionOfDownloadedBetcadeApp": "v1", "wifiDownloadLimitInMB": 0, "preferredCategories": [], "autoSaveCard": true, "autoAddHomeIcon": true, "receiveUpdateNotifications": true, "receiveAutoUpdatedNotifications": true, "receiveRecommendationNotifications": true, "preferredCurrency": null, "appSetting": { "autoUpdateApps": 2, "addIconHomeScreen": false, "saveNewCreditOrDebitCards": true, "appUpdatesAvailable": true, "appsWereAutoUpdated": true, "recommendedContentAvailable": true } }, "verified": true, "pinResetDate": null, "pinChangeDate": null, "singularId": null, "acquisitionIds": null, "userAuditInfo": { "initialLoginDate": 1475730247428, "initialLoginIp": "127.0.0.1", "initialLoginLocation": " ", "initialRegistrationDate": 1475730290789, "initialRegistrationIp": "127.0.0.1", "initialRegistrationLocation": " " }, "email": "rn.shruti@gmail.com", "phone": "+918050022027", "dob": 663878340000, "statusBeforeBlacklisting": null, "muid": null, "testUser": null }, { "id": "491c6bc6-8a6f-4e44-aa08-d66e36a65eec", "createdOn": 1474966273775, "lastModifiedOn": 1479887033703, "updatedBy": "", "deleted": false, "addresses": [ { "id": "9617a0ae-b8d1-4f6d-a108-9236e66e7586", "createdOn": 1479887033409, "lastModifiedOn": 1479887033409, "updatedBy": "", "deleted": false, "addressType": "BILLING", "city": "Somewhere", "country": "United Kingdon", "countryCode": null, "county": "Clark", "postal": "89101", "state": "st", "street": null, "street1": "123 Test Ln", "street2": "", "street3": "" } ], "devices": [ { "id": "9146350a-8104-4fd3-aa2c-601afc43f2a9", "createdOn": 1474966270642, "lastModifiedOn": 1474966270642, "updatedBy": "", "deleted": false, "description": "Old Device", "deviceStatus": "NORMAL", "manufacturer": "Apple", "model": "iPhone 5", "os": "iOS 9", "udid": "2083718938012321038243", "simStateHashCode": null, "simCardState": null, "deletedUdid": null, "deletedBy": null, "deletedOn": null, "name": "Moto", "brand": null, "androidID": "etr657y", "advertiserID": null, "operator": null, "country": "India", "language": "English", "screenWidthInPixels": null, "screenHeightInPixels": null, "screenWidthInInches": null, "screenHeightInInches": null } ], "emailAuthenticationChannels": [], "firstName": "Shruti", "fullName": "Sudipta Bhaumik", "groupTag": [ "FACEBOOK", "Apple", "United Kingdom", "iOS 9", "1234234", "iPhone 5", "india", "260057", "Somewhere", "st", "United Kingdon", "Clark", "89101" ], "lastName": "Nagarkar", "locationCountry": "india", "locationZipCode": "260057", "mobileAuthenticationChannels": [ { "addedOn": 1474966273458, "blockStatus": "NORMAL", "deletedOn": null, "lastUsedOn": 1474966273458, "loginType": "MOBILE", "mobileNumber": null, "mobilePinResetStatus": null, "mobileVerificationStatus": null, "primary": null, "deleted": false, "recycleMobileNumber": null } ], "pinCreated": true, "profileImagePath": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/default-profile-image.png", "profileName": "profile", "registrationDate": 1474966271005, "socialAuthenticationChannels": null, "status": "NEW", "timezone": "IST", "userSetting": { "autoUpdateBetcadeApp": true, "autoUpdateDownloadedApps": true, "monthlyDepositMaxLimit": 0, "monthlyDepositMaxLimitCurrency": "GBP", "prefillUserInfoInCasino": true, "receiveEmailReceipt": true, "receiveNotifications": true, "shareRegistrationInfo": true, "userEmailProvided": true, "versionOfDownloadedBetcadeApp": "v1", "wifiDownloadLimitInMB": 0, "preferredCategories": [], "autoSaveCard": true, "autoAddHomeIcon": true, "receiveUpdateNotifications": true, "receiveAutoUpdatedNotifications": true, "receiveRecommendationNotifications": true, "preferredCurrency": null, "appSetting": { "autoUpdateApps": 2, "addIconHomeScreen": false, "saveNewCreditOrDebitCards": true, "appUpdatesAvailable": true, "appsWereAutoUpdated": true, "recommendedContentAvailable": true } }, "verified": true, "pinResetDate": null, "pinChangeDate": null, "singularId": null, "acquisitionIds": null, "userAuditInfo": { "initialLoginDate": 1474966271005, "initialLoginIp": "127.0.0.1", "initialLoginLocation": " ", "initialRegistrationDate": 1474997035043, "initialRegistrationIp": "127.0.0.1", "initialRegistrationLocation": " " }, "email": "rn.shruti@gmail.com", "phone": "+918050022027", "dob": 663878340000, "statusBeforeBlacklisting": null, "muid": null, "testUser": null } ], "last": true, "totalPages": 1, "totalElements": 2, "numberOfElements": 2, "sort": [ { "direction": "DESC", "property": "lastModifiedOn", "ignoreCase": false, "nullHandling": "NATIVE", "ascending": false } ], "first": true, "size": 70, "number": 0 }, "detail": null, "error": false, "message": "Fetching all users criteria successful", "code": "1000" }
GETFetch SDK Information
- Description
- A user can fetch all SDK information.
- Request Endpoint
- GET https://<Example api server address>/user/sdkinfo
- Parameters
- None.
- cURL syntax
curl --include \ 'https://core.dev.Example.net/api/user/sdkinfo'
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": { "id": "389b8e33-b1f7-4faa-be00-b4b0cfbaac32", "updatedBy": "", "uuid": "77fc6409-9e7c-4d1d-8c6c-160e95004dc6", "applicationId": "23dcad17-73d9-4bef-bca4-f12e7f8e249b", "udid":"gkfgji7-hg-876-hdfgfdgggb", "deviceDescription":"good", "deviceManufacturer":"rt67", "deviceModel":"ng-09", "deviceOS":"android", "telephoneAvailability":"ffd", "carriers":"3435", "phoneNetworkType":"G3", "dataNetworkType":"WIFI", "ipAddress":"34.454.6.78" }, { "id": "3e33-b1f7-4faa-be00-b4b0cfbaac32", "updatedBy": "", "uuid": "7b6c4-a5ac-41e4-8ac1-4a1780ecdaec", "applicationId": "fdgfgg97668", "udid": "gkfgji787", "deviceDescription": "dfhjf", "deviceManufacturer": "rt67", "deviceModel": "ng", "deviceOS": "ggfdg", "telephoneAvailability": "ffd", "carriers": "3435", "phoneNetworkType": "G3", "dataNetworkType": "WIFI", "ipAddress": "34.4545.6" } ], "detail": null, "error": false, "message": "Fetching Sdk Information succesfully" }
GETFetching Applications Downloaded By Other Users
- Description
- Fetches applications downloaded by other Users.
- Request Endpoint
- GET https://<Example api server address>/user/{id}/other/app/{appid}/downloads
- Parameters
Parameter Type Use Description id String Required UUID of a user. appId String Required UUID of an application. - cURL syntax
curl --include \ 'https://core.dev.Example.net/api/user/id/other/app/appid/downloads'
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": [ { "id": "1bbba7f9-a8dd-4b84-abc8-19899b2cf0a7", "deleted": false, "name": "Application1", "appPackage": "appPac", "bundleIdentifier": "app1", "casino": { "id": "53bb2a0b-25fe-4674-a1e5-b65d050a55f8", "deleted": false, "name": "Poker 26", "videoUrl": "https://www.google.com/betting-video.mov", "imageUrl": "http://www.google.com/betting.png", "description": "This casino has lot of game apps1", "website": "http://www.casino1.com", "icon": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/icon1234", "banner": "banner2345", "deletedBy": null, "deletedOn": null, "operatorStatus": "NEW", "email": null, "userRole": "OPERATOR", "firstName": null, "lastName": null, "address": null, "externalId": null, "featuredAppId": null, "latestAppId": null }, "casinoId": null, "categories": [ { "id": "e068a967-4da6-40b3-ae83-f7c3d4af533e", "deleted": false, "imageUrl": "http://www.google.com/betting.png", "name": "Poker 1", "description": "Some poker category", "videoUrl": "https://www.google.com/betting-video.mov", "iconUrl": "https://www.google.com/betting-icon.png", "colorCode": "#FFFFFF", "heroImageReference": "https://www.google.com/hero.png", "priority": 1, "deletedBy": null, "deletedOn": null, "apps": null }, { "id": "86714a54-7325-4b63-b188-05e62d928539", "deleted": false, "imageUrl": "http://www.google.com/betting.png", "name": "EMkudkOYhW", "description": "Some poker category", "videoUrl": "https://www.google.com/betting-video.mov", "iconUrl": "https://www.google.com/betting-icon.png", "colorCode": "#FFFFFF", "heroImageReference": "https://www.google.com/hero.png", "priority": 1, "deletedBy": null, "deletedOn": null, "apps": null } ], "categoryIds": null, "downloads": 20, "featured": true, "applicationVersionIds": null, "keywords": [ "key1", "key2", "key3" ], "latestBuild": 18, "latestVersion": "v0.3", "initialVersionPublishDate": null, "latestVersionPublishDate": null, "order": 345, "paragraph1": "1 paragraph", "paragraph2": "2st paragraph", "paragraph3": "3st paragraph", "paragraph4": "4th para", "presetPriceList": null, "price": 3436, "publisherId": null, "publisher": null, "ranking": 23, "subtitle": "subtitle", "updated": null, "status": "PUBLISHED", "downloadLink": null, "compatibility": "kitkat", "sizeOnDisk": "12MB", "permissionDetails": "You should have kitkat version to run this app", "additionalDetails": "This application is very popular", "tags": null, "rating": { "count": 0, "overall": 0, "gamePlay": 0, "design": 0, "ease": 0 }, "silent": { "min": 1, "max": 1 }, "normal": { "min": 1, "max": 1 }, "mandatory": { "min": 1, "max": 1 }, "downgrade": { "min": null, "max": null }, "deletedBy": null, "deletedOn": null, "image": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/www.google.com", "sliderImages": [ { "id": "7cc39613-7e2a-4d31-ad24-079c06e70d92", "image": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/slider1.jpg", "order": 1 }, { "id": "0c58f354-2926-424c-935f-3e4ce8a6bc90", "image": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/slider2.jpg", "order": 0 } ], "banner": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/banner", "video": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/www.youtube.com", "icon": null, "featuredImage": null, "privacyPolicy": null, "locationSupported": [ "India", "UK" ], "languageSupported": [ "English", "French" ] } ], "detail": null, "error": false, "message": "Fetching applications downloaded by other Users." }
GETFetching Starter Packs By User
- Description
- Fetches the top 4 most-used apps by downloads across categories that the user selected.
- Request Endpoint
- GET https://<Example api server address>/user/{id}/starter/packs
- Parameters
Parameter Type Use Description id String Required UUID of a user. - cURL syntax
curl --include \ 'https://core.dev.Example.net/api/user/id/starter/packs'
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": [ { "id": "1bbba7f9-a8dd-4b84-abc8-19899b2cf0a7", "deleted": false, "name": "Application1", "appPackage": "appPac", "bundleIdentifier": "app1", "casino": { "id": "53bb2a0b-25fe-4674-a1e5-b65d050a55f8", "deleted": false, "name": "Poker 26", "videoUrl": "https://www.google.com/betting-video.mov", "imageUrl": "http://www.google.com/betting.png", "description": "This casino has lot of game apps1", "website": "http://www.casino1.com", "icon": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/icon1234", "banner": "banner2345", "deletedBy": null, "deletedOn": null, "operatorStatus": "NEW", "email": null, "userRole": "OPERATOR", "firstName": null, "lastName": null, "address": null, "externalId": null, "featuredAppId": null, "latestAppId": null }, "casinoId": null, "categories": [ { "id": "e068a967-4da6-40b3-ae83-f7c3d4af533e", "deleted": false, "imageUrl": "http://www.google.com/betting.png", "name": "Poker 1", "description": "Some poker category", "videoUrl": "https://www.google.com/betting-video.mov", "iconUrl": "https://www.google.com/betting-icon.png", "colorCode": "#FFFFFF", "heroImageReference": "https://www.google.com/hero.png", "priority": 1, "deletedBy": null, "deletedOn": null, "apps": null }, { "id": "86714a54-7325-4b63-b188-05e62d928539", "deleted": false, "imageUrl": "http://www.google.com/betting.png", "name": "EMkudkOYhW", "description": "Some poker category", "videoUrl": "https://www.google.com/betting-video.mov", "iconUrl": "https://www.google.com/betting-icon.png", "colorCode": "#FFFFFF", "heroImageReference": "https://www.google.com/hero.png", "priority": 1, "deletedBy": null, "deletedOn": null, "apps": null } ], "categoryIds": null, "downloads": 20, "featured": true, "applicationVersionIds": null, "keywords": [ "key1", "key2", "key3" ], "latestBuild": 18, "latestVersion": "v0.3", "initialVersionPublishDate": null, "latestVersionPublishDate": null, "order": 345, "paragraph1": "1 paragraph", "paragraph2": "2st paragraph", "paragraph3": "3st paragraph", "paragraph4": "4th para", "presetPriceList": null, "price": 3436, "publisherId": null, "publisher": null, "ranking": 23, "subtitle": "subtitle", "updated": null, "status": "PUBLISHED", "downloadLink": null, "compatibility": "kitkat", "sizeOnDisk": "12MB", "permissionDetails": "You should have kitkat version to run this app", "additionalDetails": "This application is very popular", "tags": null, "rating": { "count": 0, "overall": 0, "gamePlay": 0, "design": 0, "ease": 0 }, "silent": { "min": 1, "max": 1 }, "normal": { "min": 1, "max": 1 }, "mandatory": { "min": 1, "max": 1 }, "downgrade": { "min": null, "max": null }, "deletedBy": null, "deletedOn": null, "image": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/www.google.com", "sliderImages": [ { "id": "7cc39613-7e2a-4d31-ad24-079c06e70d92", "image": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/slider1.jpg", "order": 1 }, { "id": "0c58f354-2926-424c-935f-3e4ce8a6bc90", "image": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/slider2.jpg", "order": 0 } ], "banner": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/banner", "video": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/www.youtube.com", "icon": null, "featuredImage": null, "privacyPolicy": null, "locationSupported": [ "India", "UK" ], "languageSupported": [ "English", "French" ] }, { "id": "2bbba7f9-a8dd-4b84-abc8-19899b2cf0a7", "deleted": false, "name": "Application2", "appPackage": "appPac", "bundleIdentifier": "app2", "casino": { "id": "2ffc77e5-6dea-45a7-8b40-bb19e9b2615a", "deleted": false, "name": "DgDvmvkDXG", "videoUrl": null, "imageUrl": null, "description": null, "website": null, "icon": null, "banner": null, "deletedBy": null, "deletedOn": null, "operatorStatus": "INVITED", "email": "5b5afdb68dc4469d93432c263e57625b@gmail.com", "userRole": "OPERATOR", "firstName": null, "lastName": null, "address": null, "externalId": null, "featuredAppId": null, "latestAppId": null }, "casinoId": null, "categories": [ { "id": "86714a54-7325-4b63-b188-05e62d928539", "deleted": false, "imageUrl": "http://www.google.com/betting.png", "name": "EMkudkOYhW", "description": "Some poker category", "videoUrl": "https://www.google.com/betting-video.mov", "iconUrl": "https://www.google.com/betting-icon.png", "colorCode": "#FFFFFF", "heroImageReference": "https://www.google.com/hero.png", "priority": 1, "deletedBy": null, "deletedOn": null, "apps": null } ], "categoryIds": null, "downloads": 5, "featured": true, "applicationVersionIds": null, "keywords": [ "key1", "key2", "key3" ], "latestBuild": 18, "latestVersion": "v0.3", "initialVersionPublishDate": null, "latestVersionPublishDate": null, "order": 345, "paragraph1": "1 paragraph", "paragraph2": "2st paragraph", "paragraph3": "3st paragraph", "paragraph4": "4th para", "presetPriceList": null, "price": 3436, "publisherId": null, "publisher": null, "ranking": 23, "subtitle": "subtitle", "updated": null, "status": "PUBLISHED", "downloadLink": null, "compatibility": "kitkat", "sizeOnDisk": "12MB", "permissionDetails": "You should have kitkat version to run this app", "additionalDetails": "This application is very popular", "tags": null, "rating": { "count": 0, "overall": 0, "gamePlay": 0, "design": 0, "ease": 0 }, "silent": { "min": 1, "max": 1 }, "normal": { "min": 1, "max": 1 }, "mandatory": { "min": 1, "max": 1 }, "downgrade": { "min": null, "max": null }, "deletedBy": null, "deletedOn": null, "image": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/www.google.com", "sliderImages": [ { "id": "7cc39613-7e2a-4d31-ad24-079c06e70d92", "image": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/slider1.jpg", "order": 1 }, { "id": "0c58f354-2926-424c-935f-3e4ce8a6bc90", "image": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/slider2.jpg", "order": 0 } ], "banner": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/banner", "video": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/www.youtube.com", "icon": null, "featuredImage": null, "privacyPolicy": null, "locationSupported": [ "India", "UK" ], "languageSupported": [ "English", "French" ] } ], "detail": null, "error": false, "message": "Fetching user starter packs info successful" }
GETGet SDK Information Based on UserId
- Description
- This service will fetch SDK information based on the based on UserId passed.
- Request Endpoint
- GET https://<Example api server address>/user/sdkinfo/byuserid/{id}
- Parameters
Parameter Type Use Description id String Required UUID of the user. - cURL syntax
curl --include \ 'https://core.dev.Example.net/api/user/sdkinfo/byuserid/id'
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": { "id": "49abfd0e-0cf9-4f5c-b98f-6628dcb07fd1", "updatedBy": "", "uuid": "7b680bc4-a5ac-41e4-8ac1-4a1780ecdaec", "applicationId": "fdgfgg97668", "udid": "gkfgji787", "deviceDescription": "dfhjf", "deviceManufacturer": "rt67", "deviceModel": "ng", "deviceOS": "ggfdg", "telephoneAvailability": "ffd", "carriers": "3435", "phoneNetworkType": "G3", "dataNetworkType": "WIFI", "ipAddress": "34.4545.6" }, "detail": null, "error": false, "message": "Fetched Sdk Information succesfully" }
GETGet SDK Information Based on DeviceUDID
- Description
- This service will fetch SDK information based on DeviceUdid passed.
- Request Endpoint
- GET https://<Example api server address>/user/sdkinfo/bydeviceudid/{id}
- Parameters
Parameter Type Use Description id String Required UDID of the device. - cURL syntax
curl --include \ 'https://core.dev.Example.net/api/user/sdkinfo/bydeviceudid/id'
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": { "id": "49abfd0e-0cf9-4f5c-b98f-6628dcb07fd1", "updatedBy": "", "uuid": "7b680bc4-a5ac-41e4-8ac1-4a1780ecdaec", "applicationId": "fdgfgg97668", "udid": "gkfgji787", "deviceDescription": "dfhjf", "deviceManufacturer": "rt67", "deviceModel": "ng", "deviceOS": "ggfdg", "telephoneAvailability": "ffd", "carriers": "3435", "phoneNetworkType": "G3", "dataNetworkType": "WIFI", "ipAddress": "34.4545.6" }, "detail": null, "error": false, "message": "Fetched Sdk Information succesfully" }
GETGet Verification Pending Credentials of a User
- Description
- Fetches all credentials of a user whose verification is still pending.
- Request Endpoint
- GET https://<Example api server address>/user/{id}/verification/pending/credential
- Parameters
Parameter Type Use Description id String Required UUID of an existing user. - cURL syntax
curl --include \ 'https://core.dev.Example.net/api/user/id/verification/pending/credential'
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": { "mobileAuthenticationChannels": [], "emailAuthenticationChannels": [ { "addedOn": 1455625239183, "blockStatus": "NORMAL", "deletedOn": null, "emailAddress": "rn.shruti@gmail.com", "emailPinResetStatus": "RESET_NA", "emailVerificationStatus": "VERIFICATION_PENDING", "lastUsedOn": 1455625239183, "loginType": "EMAIL", "primary": null } ] }, "detail": null, "error": false, "message": "Fetching verification pending credentials of an user successful" }
POSTRegistration / Login
- Description
- A user can be registered using one of the login methods: Email, Mobile, Facebook, Twitter or Google.
- Request Endpoint
- POST https://<Example api server address>/user/login
- Parameters
- None.
- cURL syntax
curl --include \ --request POST \ --header "Content-Type: application/json" \ --data-binary "{ \"loginType\": \"FACEBOOK\", \"socialId\": \"sl123\", \"primary\": true, \"firstName\": \"ABC \", \"lastName\": \"DEF\", \"profileName\": \"ABC\", \"profileImage\": \"https://jfjh.jdhhg.png\", \"birthDateDay\": 12, \"birthDateMonth\": 1, \"birthDateYear\": 1945, \"locationCountry\": \"United Kingdom\", \"locationZipCode\": \"1234234\", \"device\": { \"udid\": \"2083718938012321038243\", \"description\": \"Old Device\", \"manufacturer\": \"Apple\", \"model\": \"iPhone 5\", \"os\": \"iOS 9\", \"name\": \"Moto\", \"androidID\": \"etr657y\", \"adveriserID\": \"gfhy67\", \"operator\": null, \"country\": \"India\", \"language\": \"English\", \"screenWidth\": \"5\", \"screenHeight\": \"9\", \"brand\": null }, \"email\": \"san.sh555@gmail.com\", \"phone\": \"+919874654244\", \"dob\": \"1991-04-09\", \"socialEmail\":\"san.sh555@gmail.com\", \"socialProfileName\":\"facebook\" }" \ 'https://core.dev.Example.net/api/user/login'
- POST body attributes (JSON)
Attribute Type Use Description loginType
String Required The login type (can be "EMAIL", "MOBILE", "GOOGLE", "FACEBOOK", "TWITTER"). emailAddress
String Conditional Email address of the user in case of email login (mandatory for email login). mobileNumber
String Conditional Mobile number of the user in case of mobile login (mandatory for mobile login). socialId
String Conditional Social Id of the user in the case of a facebook, google or twitter login (mandatory for google, facebook or twitter login). primary
String Optional Indicates if the login mechanism is primary for the user. firstName
String Optional First Name of the user. lastName
String Optional Last Name of the user. profileName
String Optional Profile name of the user. birthDateDay
Number Optional Birth Date day of the user. birthDateMonth
Number Optional Birth Date month of the user. birthDateYear
Number Optional Birth Date Year of the user. locationCountry
String Optional Country of the user. locationZipCode
String Optional Zip code of the user. device
Object Optional Device details of the user. udid
String Required UDID of the device the user is using. description
String Optional description of the device. manufacturer
String Optional Manufacturer of the device. model
String Optional The device model. os
String Optional The current operating system of the device. name
String Optional The name of the device. androidID
String Optional The android id. adveriserID
String Optional Id of an advertiser. operator
String Optional The operator. country
String Optional The country name. language
String Optional The default language of the country. screenWidth
String Optional The width of the screen. screenHeight
String Optional The height of the screen. brand
String Optional The device brand. guid
String Optional The user acquisition id. phone
String Optional The phone number of a user. String Optional The email address of a user. dob
String Optional The date of birth of a user. profileImage
String Optional The profile image path. socialEmail
String Optional The email address for social. socialProfileName
String Optional The social name. - POST body
Headers: Content-Type: application/json
{ "loginType": "FACEBOOK", "socialId": "sl123", "primary": true, "firstName": "ABC ", "lastName": "DEF", "profileName": "ABC", "profileImage": "https://jfjh.jdhhg.png", "birthDateDay": 12, "birthDateMonth": 1, "birthDateYear": 1945, "locationCountry": "United Kingdom", "locationZipCode": "1234234", "device": { "udid": "2083718938012321038243", "description": "Old Device", "manufacturer": "Apple", "model": "iPhone 5", "os": "iOS 9", "name": "Moto", "androidID": "etr657y", "adveriserID": "gfhy67", "operator": null, "country": "India", "language": "English", "screenWidth": "5", "screenHeight": "9", "brand": null }, "email": "san.sh555@gmail.com", "phone": "+919874654244", "dob": "1991-04-09", "socialEmail": "san.sh555@gmail.com", "socialProfileName": "facebook" }
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": { "id": "eccfd646-14a0-4fec-8582-ea908f8b1662", "deleted": false, "addresses": null, "devices": [ { "id": "19454557-9e13-4335-93fe-d574f03a7577", "deleted": false, "description": "Old Device", "deviceStatus": "NORMAL", "manufacturer": "Apple", "model": "iPhone 5", "os": "iOS 9", "udid": "2083718938012321038243", "simStateHashCode": null, "simCardState": null, "deletedUdid": null, "deletedBy": null, "deletedOn": null, "name": "Moto", "brand": null, "androidID": "etr657y", "advertiserID": null, "operator": null, "country": "India", "language": "English", "screenWidthInPixels": null, "screenHeightInPixels": null, "screenWidthInInches": null, "screenHeightInInches": null } ], "emailAuthenticationChannels": [], "firstName": "ABC ", "fullName": "ABC DEF", "groupTag": [ "FACEBOOK", "Apple", "United Kingdom", "iOS 9", "1234234", "iPhone 5" ], "lastName": "DEF", "locationCountry": "United Kingdom", "locationZipCode": "1234234", "mobileAuthenticationChannels": [], "pinCreated": false, "profileImagePath": "https://s3-us-west-2.amazonaws.com/btc.inf.apdx.assets/https://jfjh.jdhhg.png", "profileName": "ABC", "registrationDate": 1474023341958, "socialAuthenticationChannels": [ { "addedOn": 1474023344445, "blockStatus": "NORMAL", "deletedOn": null, "lastUsedOn": 1474024878701, "loginType": "FACEBOOK", "socialId": "sl123", "deleted": false, "recycleSocialId": null, "emailAddress": "san.sh555@gmail.com", "profileName": "facebook" } ], "status": "EXISTING", "timezone": null, "userSetting": { "autoUpdateBetcadeApp": true, "autoUpdateDownloadedApps": true, "monthlyDepositMaxLimit": 0, "monthlyDepositMaxLimitCurrency": "GBP", "prefillUserInfoInCasino": true, "receiveEmailReceipt": true, "receiveNotifications": true, "shareRegistrationInfo": true, "userEmailProvided": true, "versionOfDownloadedBetcadeApp": "v1", "wifiDownloadLimitInMB": 0, "preferredCategories": [], "autoSaveCard": true, "autoAddHomeIcon": true, "receiveUpdateNotifications": true, "receiveAutoUpdatedNotifications": true, "receiveRecommendationNotifications": true, "appSetting": { "autoUpdateApps": 2, "addIconHomeScreen": false, "saveNewCreditOrDebitCards": true, "appUpdatesAvailable": true, "appsWereAutoUpdated": true, "recommendedContentAvailable": true } }, "verified": true, "pinResetDate": null, "kycStatus": null, "singularId": null, "acquisitionIds": null, "userAuditInfo": { "initialLoginDate": 1474023341958, "initialLoginIp": "127.0.0.1", "initialLoginLocation": " ", "initialRegistrationDate": null, "initialRegistrationIp": null, "initialRegistrationLocation": null }, "email": "san.sh555@gmail.com", "phone": "+919874654244", "dob": 663359640000, "testUser": null, "pinChangeDate": null }, "detail": null, "error": false, "message": "Creating login successful" }
DELETERemove Authentication Channel
- Description
- Removes the authentication mechanism.
- Request Endpoint
- DELETE https://<Example api server address>/user/auth
- Parameters
- None.
- cURL syntax
curl --include \ --request DELETE \ --header "Content-Type: application/json" \ --data-binary "{ \"loginType\":\"MOBILE\", \"userId\":\"70faeb48-0b07-4942-afa2-f413e2f698fa\", \"socialId\":null, \"mobileNumber\":\"+919900111917\", \"emailAddress\":null }" \ 'https://core.dev.Example.net/api/user/auth'
- DELETE body attributes (JSON)
Attribute Type Use Description loginType
String Required The login type (Can be "EMAIL", "MOBILE", "GOOGLE", "FACEBOOK", "TWITTER"). userId
String Required UUID of a user. socialId
String Conditional Social ID of the user (only applicable and mandatory for login types "GOOGLE", "FACEBOOK" and "TWITTER"). mobileNumber
String Conditional Mobile number of the user (only applicable and mandatory for the login type "MOBILE"). emailAddress
String Conditional Email address of the user (Only applicable and mandatory for the login type "EMAIL"). - DELETE body
Headers: Content-Type: application/json
{ "loginType": "FACEBOOK", "userId": "51aae6c2-0a17-42fe-8ad9-9e0d410cd662", "socialId": "social12345", "mobileNumber": null, "emailAddress": null }
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "error": false, "message": "Remove login channel successful", "detail": null, "data": { "id": "51aae6c2-0a17-42fe-8ad9-9e0d410cd662", "firstName": "Sashi", "lastName": "Gubbi", "fullName": null, "profileName": "SumaG", "registrationDate": 1449821338895, "birthDateDay": 3, "birthDateMonth": 2, "birthDateYear": 2013, "locationCountry": "India", "locationZipCode": "123456", "timezone": "ist", "profileImagePath": null, "userSetting": { "autoUpdateBetcadeApp": true, "autoUpdateDownloadedApps": true, "userEmailProvided": false, "monthlyDepositMaxLimit": 2414, "monthlyDepositMaxLimitCurrency": "USD", "wifiDownloadLimitInMB": 232, "prefillUserInfoInCasino": false, "versionOfDownloadedBetcadeApp": "sg34", "receiveEmailReceipt": true, "receiveNotifications": false, "shareRegistrationInfo": false }, "socialAuthenticationChannels": [], "emailAuthenticationChannels": [ { "loginType": "EMAIL", "primary": null, "emailAddress": "rn.shruti@gmail.com", "emailVerificationStatus": "VERIFIED", "emailPinResetStatus": null, "addedOn": 1449821338895, "lastUsedOn": 1449821338895 } ], "mobileAuthenticationChannels": [ { "loginType": "MOBILE", "primary": null, "mobileNumber": "+918050022027", "mobileVerificationStatus": "VERIFIED", "mobilePinResetStatus": null, "addedOn": 1449821338895, "lastUsedOn": 1449821338895 } ], "addresses": null, "status": "EXISTING", "verified": true, "wrongPinAttempts": 0, "pinCreated": true, "paymentMethods": [] } }
POSTResend Email Code
- Description
- A new email token can be requested using this API.
- Request Endpoint
- POST https://<Example api server address>/user/auth/email/code
- Parameters
- None.
- cURL syntax
curl --include \ --request POST \ --header "Content-Type: application/json" \ --data-binary "{ \"emailAddress\": \"abc@gmail.com\" }" \ 'https://core.dev.Example.net/api/user/auth/email/code'
- POST body attributes (JSON)
Attribute Type Use Description emailAddress
String Required Email address of the user. - POST body
Headers: Content-Type: application/json
{ "emailAddress": "abc@gmail.com" }
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "error": false, "message": "Resending email link successful", "detail": null, "data": true }
POSTResend SMS Code
- Description
- A new SMS code can be requested by using this API.
- Request Endpoint
- POST https://<Example api server address>/user/auth/mobile/code
- Parameters
- None.
- cURL syntax
curl --include \ --request POST \ --header "Content-Type: application/json" \ --data-binary "{ \"mobileNumber\": \"123456789\" }" \ 'https://core.dev.Example.net/api/user/auth/mobile/code'
- POST body attributes (JSON)
Attribute Type Use Description mobileNumber
String Required Mobile number of the user. - POST body
Headers: Content-Type: application/json
{ "mobileNumber": "123456789" }
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "error": false, "message": "Resending sms code successful", "detail": null, "data": true }
POSTReset PIN
- Description
- A user can request to reset their PIN using this API.
- Request Endpoint
- POST https://<Example api server address>/user/auth/pin/reset
- Parameters
- None.
- cURL syntax
curl --include \ --request POST \ --header "Content-Type: application/json" \ --data-binary "{ \"loginType\": \"MOBILE\", \"mobileNumber\": \"+918050022027\", \"pin\": \"1924\" }" \ 'https://core.dev.Example.net/api/user/auth/pin/reset'
- POST body attributes (JSON)
Attribute Type Use Description loginType
String Required The login type (Can be "EMAIL", "MOBILE", "GOOGLE", "FACEBOOK", "TWITTER"). emailAddress
String Conditional Email address of the user in case of email login (mandatory for email login). mobileNumber
String Conditional Mobile number of the user in case of mobile login (mandatory for mobile login). socialId
String Conditional Social Id of the user in case of facebook, google or twitter login (mandatory for google, facebook or twitter login). pin
String Optional PIN for the user. Should be a valid 4 digit numeric string. - POST body
Headers: Content-Type: application/json
{ "loginType": "MOBILE", "mobileNumber": "+918050022027", "pin": "1924" }
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "error": false, "message": "Resending authentication is successful to reset pin.", "detail": null, "data": true }
POSTSet / Update Casino User Data
- Description
- Helps in setting/updating casino user data to an existing user.
- Request Endpoint
- POST https://<Example api server address>/user/casino/data
- Parameters
- None.
- cURL syntax
curl --include \ --request POST \ --header "Content-Type: application/json" \ --data-binary "{ \"userId\" : \"27f812d1-2f12-4b42-9275-8afbe3a0d0c2\", \"bundleIdentifier\" : \"bundmle1d234\", \"extCasinoUserId\" : \"sdsfsfa4ba92-dc26a81a-3c3-41eb-951c\", \"extCasinoUserStatus\" : \"NEW\" }" \ 'https://core.dev.Example.net/api/user/casino/data'
- POST body attributes (JSON)
Attribute Type Use Description userId
String Required UUID of a User. bundleIdentifier
String Required Bundle identifier of an application. extCasinoUserId
String Required UUID of a User registered with a casino. extCasinoUserStatus
String Required Can be either "NEW" or "EXISTING". - POST body
Headers: Content-Type: application/json
{ "userId": "27f812d1-2f12-4b42-9275-8afbe3a0d0c2", "bundleIdentifier": "bundmle1d234", "extCasinoUserId": "sdsfsfa4ba92-dc26a81a-3c3-41eb-951c", "extCasinoUserStatus": "NEW" }
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": { "id": "70fab1b6-2138-46d9-a479-ba5db0a9be5c", "user": { "id": "27f812d1-2f12-4b42-9275-8afbe3a0d0c2", "addresses": null, "birthDateDay": 4, "birthDateMonth": 1, "birthDateYear": 1980, "devices": null, "emailAuthenticationChannels": [ { "addedOn": 1453186938762, "blockStatus": "NORMAL", "deletedOn": null, "emailAddress": "sudipta.bhaumik@innoflexion.com", "emailPinResetStatus": "RESET_NA", "emailVerificationStatus": "VERIFICATION_PENDING", "lastUsedOn": 1453186938762, "loginType": "EMAIL", "primary": true, "deleted": false, "recycleEmailAddress": null } ], "firstName": "Sudipta", "fullName": "Sudipta ", "groupTag": [ "Samsung", "manu1", 1980, "EMAIL", "IND", "Android" ], "lastName": "", "locationCountry": "IND", "locationZipCode": "", "mobileAuthenticationChannels": [ { "addedOn": null, "blockStatus": "NORMAL", "deletedOn": null, "lastUsedOn": null, "loginType": null, "mobileNumber": "+916616248136", "mobilePinResetStatus": null, "mobileVerificationStatus": "VERIFIED", "primary": null, "deleted": false, "recycleMobileNumber": null } ], "pinCreated": true, "profileImagePath": null, "profileName": "sudipta", "registrationDate": 1453273338762, "socialAuthenticationChannels": [ { "addedOn": 1466427977555, "blockStatus": "NORMAL", "deletedOn": null, "lastUsedOn": 1466427977555, "loginType": null, "socialId": "Glenn0257", "deleted": false, "recycleSocialId": null } ], "status": "NEW", "timezone": null, "userSetting": null, "verified": true, "pinResetDate": null, "testUser": null }, "applications": [ { "id": "8c68054f-4963-47bc-b40d-ff7b69d9d", "name": "MongoDDDDN", "appPackage": "appghhPac", "banner": "bannfgher", "bundleIdentifier": "bundmle1d234", "casino": { "id": "38d09d6e-12e1-44cb-ba2f-c69afc2806f3", "name": "UserAppCas", "videoUrl": "UserAppCas", "imageUrl": "UserAppCas", "description": null, "website": null, "icon": null, "banner": null }, "casinoId": null, "categories": [ { "id": "5a1e1b8b-db12-4f64-a6ae-85cf1c6dbc90", "imageUrl": "UserAppCat", "name": "UserAppCat", "description": null, "videoUrl": "UserAppCat", "iconUrl": null, "colorCode": null, "heroImageReference": null, "priority": 1000 } ], "categoryIds": null, "description": "description about application 1", "downloads": 4646, "featured": null, "versionHistories": [ { "build": null, "version": "cs", "versionDate": 1464948221224, "downloadLink": null, "rating": { "count": 0, "overall": 0, "gamePlay": 0, "design": 0, "ease": 0 } } ], "image": "www.google.com", "keywords": [ "key1", "key2", "key3", "key4", "key5" ], "latestBuild": null, "latestVersion": "cs", "order": 345, "paragraph1": "1 paragraph", "paragraph2": "2st paragraph", "paragraph3": "3st paragraph", "paragraph4": "4th para", "presetPriceList": null, "price": 3436, "publisher": null, "ranking": 23, "sliderImages": null, "subtitle": "subtitle", "updated": null, "video": "www.youtube.com", "status": "SUBMITTED", "downloadLink": null, "compatibility": "kitkat", "sizeOnDisk": "12MB", "permissionDetails": "You should have kitkat version to run this app", "locationSupported": [ "India", "UK" ], "languageSupported": [ "English", "French" ], "additionalDetails": "This application is very popular", "tags": null, "rating": { "count": 0, "overall": 0, "gamePlay": 0, "design": 0, "ease": 0 }, "silent": null, "normal": null, "mandatory": null, "downgrade": null, "incentives": [ { "id": "fafce5c0-78eb-458a-acc8-4478b8219660", "title": "20$ for a percent deposit", "type": "PERCENT", "amount": 20, "limit": 100, "expired": false, "validTill": null }, { "id": "73cbb51e-2b18-460d-97f3-f067264165c2", "title": "20 for a percent deposit", "type": "PERCENT", "amount": 25, "limit": 100, "expired": false, "validTill": null } ] } ], "casino": { "id": "38d09d6e-12e1-44cb-ba2f-c69afc2806f3", "name": "UserAppCas", "videoUrl": "UserAppCas", "imageUrl": "UserAppCas", "description": null, "website": null, "icon": null, "banner": null }, "extCasinoUserId": "sdsfsfa4ba92-dc26a81a-3c3-41eb-951c", "extCasinoUserStatus": "NEW" }, "detail": null, "error": false, "message": "Setting/Updating casino user data successful" }
POSTUpdate Privacy Setting
- Description
- Sets the share registration information attribute for a user.
- Request Endpoint
- POST https://<Example api server address>/user/casino/register/info
- Parameters
- None.
- cURL syntax
curl --include \ --request POST \ --header "Content-Type: application/json" \ --data-binary "{ \"userId\": \"c3da6ce7-0576-4772-93c1-da7h436fbf\", \"shareRegistrationInfo\": true }" \ 'https://core.dev.Example.net/api/user/casino/register/info'
- POST body attributes (JSON)
Attribute Type Use Description userId
String Required UUID of a user. shareRegistrationInfo
Boolean Required Attribute that indicates if a user wants to share their registration info with other casino game apps. - POST body
Headers: Content-Type: application/json
{ "userId": "c3da6ce7-0576-4772-93c1-da7h436fbf", "shareRegistrationInfo": true }
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "error": false, "message": "Setting Share Registration Information successfully", "detail": null, "data": { "id": "c3da6ce7-0576-4772-93c1-da7h436fbf", "firstName": "John", "lastName": "Nair", "fullName": "John Nair", "profileName": "John", "registrationDate": 1448898079793, "birthDateDay": 12, "birthDateMonth": 1, "birthDateYear": 1945, "locationCountry": "India", "locationZipCode": "1234234", "timezone": null, "userSetting": [ { "autoUpdateBetcadeApp": true, "autoUpdateDownloadedApps":true, "userEmailProvided": false, "monthlyDepositMaxLimit": 34, "monthlyDepositMaxLimitCurrency": "USD", "wifiDownloadLimitInMB": 78, "prefillUserInfoInCasino": true, "versionOfDownloadedBetcadeApp": "v0.1", "receiveEmailReceipt": true, "receiveNotifications": false, "shareRegistrationInfo": true }], "validated": "true", "addedOn":658745874, "lastUsedOn":67857902 "status": "EXISTING", "verified": true } }
PUTUpdate Profile
- Description
- A user’s information can be updated by using this API.
- Request Endpoint
- PUT https://<Example api server address>/user/profile
- Parameters
- None.
- cURL syntax
curl --include \ --request PUT \ --header "Content-Type: application/json" \ --data-binary "{ \"userId\" : \"9a63fb67-63ab-4407-92d7-d94f8e3ca614\", \"firstName\" : \"Sudipta\", \"lastName\" : \"Sudipta\", \"fullName\" : \"Sudipta Bhaumik\", \"profileName\" : \"profile\", \"profileImagePath\": null, \"birthDateDay\" : \"12\", \"birthDateMonth\" : \"05\", \"birthDateYear\" : \"1980\", \"locationCountry\" : \"\", \"locationZipCode\" : \"\", \"timezone\" : \"IST\", \"address\" : { \"street1\": \"123 Test Ln\", \"street2\": \"\", \"street3\": \"\", \"city\": \"Somewhere\", \"state\" : \"st\", \"county\": \"Clark\", \"postal\": \"89101\", \"country\": \"United Kingdon\", \"addressType\" : \"BILLING\" } }" \ 'https://core.dev.Example.net/api/user/profile'
- PUT body attributes (JSON)
Attribute Type Use Description userId
String Required UUID for the user. firstName
String Required First name of the user. lastName
String Optional Last Name of the user. profileName
String Optional Profile name of the user. profileImagePath
String Optional Profile image name/path. birthDateDay
Number Optional Birth Date day of the user. birthDateMonth
Number Optional Birth Date month of the user. birthDateYear
Number Optional Birth date year of the user. locationCountry
String Required Country of the user. locationZipCode
String Optional Zip code of the user. timezone
String Optional Timezone of the user. address
Object Optional Address details for the user. See the following PUT body JSON child attributes of this object. - PUT body
Headers: Content-Type: application/json
{ "userId": "9a63fb67-63ab-4407-92d7-d94f8e3ca614", "firstName": "Sudipta", "lastName": "Sudipta", "fullName": "Sudipta Bhaumik", "profileName": "profile", "birthDateDay": "12", "birthDateMonth": "05", "birthDateYear": "1980", "locationCountry": "", "locationZipCode": "", "timezone": "IST", "address": { "street1": "123 Test Ln", "street2": "", "street3": "", "city": "Somewhere", "state": "st", "county": "Clark", "postal": "89101", "country": "United Kingdon", "addressType": "BILLING" } }
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "error": false, "message": "Updating user information is successful", "detail": null, "data": { "id": "9a63fb67-63ab-4407-92d7-d94f8e3ca614", "firstName": "ABC ", "lastName": "DEF", "fullName": "ABC DEF", "profileName": "ABC", "registrationDate": 1448898079793, "birthDateDay": 12, "birthDateMonth": 1, "birthDateYear": 1945, "locationCountry": "India", "locationZipCode": "1234234", "timezone": null, "userSetting": null, "socialAuthenticationChannels": [], "emailAuthenticationChannels": [], "mobileAuthenticationChannels": [], "addresses": null, "status": "NEW", "verified": true } }
PUTUpdate (User PIN)
- Description
- Request Endpoint
- PUT https://<Example api server address>/user/pin
- Parameters
- None.
- cURL syntax
curl --include \ --request PUT \ --header "Content-Type: application/json" \ --data-binary "{ \"loginType\" : \"MOBILE\", \"mobileNumber\" : \"+918050022027\", \"currentPin\" : \"3512\", \"newPin\" : \"2344\" }" \ 'https://core.dev.Example.net/api/user/pin'
- PUT body attributes (JSON)
Attribute Type Use Description loginType
String Required Login Type (Can be "EMAIL", "MOBILE", "GOOGLE", "FACEBOOK", "TWITTER"). emailAddress
String Conditional Email address of the user in case of email login (mandatory for email login). mobileNumber
String Conditional Mobile number of the user in case of mobile login (mandatory for mobile login). socialId
String Conditional Social Id of the user in case of facebook, google or twitter login (mandatory for google, facebook or twitter login). currentPin
String Required Current PIN of a user. newPin
String Required New PIN for the user. Should be a valid 4 digit numeric string. - PUT body
Headers: Content-Type: application/json
{ "loginType": "MOBILE", "mobileNumber": "+918050022027", "currentPin": "3512", "newPin": "2344" }
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": true, "detail": null, "error": false, "message": "Updating an user's pin successful" }
PUTUpdate User Settings
- Description
- Allows a client to update a user’s profile settings.
- Request Endpoint
- PUT https://<Example api server address>/user/{id}/settings
- Parameters
Parameter Type Use Description id String Required uuid of a user. - cURL syntax
curl --include \ --request PUT \ --header "Content-Type: application/json" \ --data-binary "{ \"autoUpdateBetcadeApp\": true, \"autoUpdateDownloadedApps\":true, \"userEmailProvided\": false, \"monthlyDepositMaxLimit\": 34, \"monthlyDepositMaxLimitCurrency\": \"USD\", \"wifiDownloadLimitInMB\": 78, \"prefillUserInfoInCasino\": true, \"versionOfDownloadedBetcadeApp\": \"v0.1\", \"receiveEmailReceipt\": true, \"receiveNotifications\": false, \"shareRegistrationInfo\": false, \"allowLargeFilesOverWifiOnly\": false, \"appSetting\": { \"autoUpdateApps\": 1, \"addIconHomeScreen\": true, \"saveNewCreditOrDebitCards\": true, \"appUpdatesAvailable\": true, \"appsWereAutoUpdated\": true, \"recommendedContentAvailable\": false } }" \ 'https://core.dev.Example.net/api/user/id/settings'
- PUT body attributes (JSON)
Attribute Type Use Description autoUpdateBetcadeApp
Boolean Optional Auto-updates the Example app. autoUpdateDownloadedApps
Boolean Optional Auto-updates downloaded apps. userEmailProvided
Boolean Optional The user's email. monthlyDepositMaxLimit
Number Optional The maximum monthly deposit limit. monthlyDepositMaxLimitCurrency
String Optional The currency's country. wifiDownloadLimitInMB
Number Optional The download size limit. prefillUserInfoInCasino
Boolean Optional Choose to prefill the user info in casino. versionOfDownloadedBetcadeApp
String Optional Version of the downloaded app. receiveEmailReceipt
Boolean Optional Choose to receive an email receipt. receiveNotifications
Boolean Optional Choose to receive notifications. shareRegistrationInfo
Boolean Optional Choose to share registration information. allowLargeFilesOverWifiOnly
Boolean Optional An avoid warning to download a game .apk if size is more than xxxMB's. appSetting
Object Optional An object contain the following attributes. autoUpdateApps
Number Optional The number of auto-updated apps. addIconHomeScreen
Boolean Optional Choose to add an icon home screen. saveNewCreditOrDebitCards
Boolean Optional Choose to save new credit or debit cards. appUpdatesAvailable
Boolean Optional Choose to see available app updates. scope="row" scope="row" appsWereAutoUpdated
Boolean Optional Choose to see which apps were auto-updated. recommendedContentAvailable
Boolean Optional Choose see available recommended content. - PUT body
Headers: Content-Type: application/json
{ "autoUpdateBetcadeApp": true, "autoUpdateDownloadedApps": true, "userEmailProvided": false, "monthlyDepositMaxLimit": 34, "monthlyDepositMaxLimitCurrency": "USD", "wifiDownloadLimitInMB": 78, "prefillUserInfoInCasino": true, "versionOfDownloadedBetcadeApp": "v0.1", "receiveEmailReceipt": true, "receiveNotifications": false, "shareRegistrationInfo": false, "allowLargeFilesOverWifiOnly": false, "appSetting": { "autoUpdateApps": 1, "addIconHomeScreen": true, "saveNewCreditOrDebitCards": true, "appUpdatesAvailable": true, "appsWereAutoUpdated": true, "recommendedContentAvailable": false } }
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "error": false, "message": "Updated user settings successfully", "detail": null, "data": { "id": "c3da6ce7-0576-4772-93c1-da7h436fbf", "firstName": "John", "lastName": "Nair", "fullName": "John Nair", "profileName": "John", "registrationDate": 1448898079793, "birthDateDay": 12, "birthDateMonth": 1, "birthDateYear": 1945, "locationCountry": "India", "locationZipCode": "1234234", "timezone": null, "userSetting": [ { "autoUpdateBetcadeApp": true, "autoUpdateDownloadedApps":true, "userEmailProvided": false, "monthlyDepositMaxLimit": 34, "monthlyDepositMaxLimitCurrency": "USD", "wifiDownloadLimitInMB": 78, "prefillUserInfoInCasino": true, "versionOfDownloadedBetcadeApp": "v0.1", "receiveEmailReceipt": true, "receiveNotifications": false, "shareRegistrationInfo": false }], "validated": "true", "addedOn":658745874, "lastUsedOn":67857902 "status": "EXISTING", "verified": true } }
POSTVerify Email Address
- Description
- A user can verify their email address using the following request object. The JSON properties "emailAddress" and "code" are mandatory.
- Request Endpoint
- POST https://<Example api server address>/user/auth/email/verify
- Parameters
- None.
- cURL syntax
curl --include \ --request POST \ --header "Content-Type: application/json" \ --data-binary "{ \"emailAddress\": \"san@gmail.com\", \"code\":\"456321\" }" \ 'https://core.dev.Example.net/api/user/auth/email/verify'
- POST body attributes (JSON)
Attribute Type Use Description emailAddress
String Required Email address of the user. code
String Required Code sent to the user. - POST body
Headers: Content-Type: application/json
{ "emailAddress": "san@gmail.com", "code": "456321" }
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "data": true, "detail": null, "error": false, "message": "Email code verification successful" }
POSTVerify Mobile Number
- Description
- You can verify a mobile number sent to a user using the following request object. The attributes "mobileNumber" and "smsCode" in the POST body are required.
- Request Endpoint
- POST https://<Example api server address>/user/auth/mobile/verify
- Parameters
- None.
- cURL syntax
curl --include \ --request POST \ --header "Content-Type: application/json" \ --data-binary "{ \"mobileNumber\": \"123456789\", \"smsCode\": \"5678\" }" \ 'https://core.dev.Example.net/api/user/auth/mobile/verify'
- POST body attributes (JSON)
Attribute Type Use Description mobileNumber
String Required Mobile number of the user. smsCode
String Required SMS code sent to the user. - POST body
Headers: Content-Type: application/json
{ "mobileNumber": "123456789", "smsCode": "5678" }
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "error": false, "message": "SMS Code verification successful", "detail": null, "data": true }
POSTVerify PIN
- Description
- A user can be authenticated using this API.
- Request Endpoint
- POST https://<Example api server address>/user/auth/pin/verify
- Parameters
- None.
- cURL syntax
curl --include \ --request POST \ --header "Content-Type: application/json" \ --data-binary "{ \"loginType\": \"FACEBOOK\", \"socialId\": \"123dgf\", \"pin\": \"1234\", \"deviceUdid\" : \"sgweg35235sdfsf\" }" \ 'https://core.dev.Example.net/api/user/auth/pin/verify'
- POST body attributes (JSON)
Attribute Type Use Description loginType
String Required Login Type (Can be "EMAIL", "MOBILE", "GOOGLE", "FACEBOOK", "TWITTER"). emailAddress
String Conditional Email address of the user in case of email login (mandatory for email login). mobileNumber
String Conditional Mobile number of the user in case of mobile login (mandatory for mobile login). socialId
String Conditional Social Id of the user in case of facebook, google or twitter login (mandatory for Google, Facebook or Twitter login). pin
String Optional PIN for the user. Should be a valid 4 digit numeric string. deviceUdid
String Required UDID of the device from which the use is logging in. Required for blocking a login from a blacklisted device. - POST body
Headers: Content-Type: application/json
{ "loginType": "FACEBOOK", "socialId": "123dgf", "pin": "1234", "deviceUdid": "sgweg35235sdfsf" }
- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200
{ "error": false, "message": "Logged in successfully", "detail": null, "data": { "id": "c3da6ce7-0576-4772-93c1-dac0b3816fbf", "firstName": "John", "lastName": "Nair", "fullName": "John Nair", "profileName": "John", "registrationDate": 1448898079793, "birthDateDay": 12, "birthDateMonth": 1, "birthDateYear": 1945, "locationCountry": "India", "locationZipCode": "1234234", "timezone": null, "userSetting": null, "socialAuthenticationChannels": [ { "loginType": "FACEBOOK", "socialId": "123456789", "addedOn": 1448898079793, "lastUsedOn": 1448898079793 } ], "emailAuthenticationChannels": [], "mobileAuthenticationChannels": [], "addresses": null, "status": "EXISTING", "verified": true } }