Casino APIs
POSTAuthenticate User
- Description
- Allows a casino app to authenticate a user.
- Request Endpoint
- POST https://<Example api server address>/user/casino/pin/verify
- Parameters
- None.
- cURL syntax
curl --include \ --request POST \ --header "Content-Type: application/json" \ --data-binary "{ \"loginType\":\"FACEBOOK\", \"socialId\":\"social12345\", \"pin\" : \"2344\" }" \ 'https://core.dev.Example.net/api/user/casino/pin/verify'- POST body attributes (JSON)
Attribute Type Use Description loginTypeString Required Login Type (Can be "EMAIL", "MOBILE", "GOOGLE", "FACEBOOK", or "TWITTER"). userIdString Required UUID of a user. socialIdString Conditional Social ID of the user (Only applicable and mandatory for login types "GOOGLE", "FACEBOOK" and "TWITTER"). mobileNumberString Conditional Mobile number of the user (Only applicable and mandatory for the login type "MOBILE"). emailAddressString Conditional Email address of the user (Only applicable and mandatory for the login type "EMAIL"). pinString Required PIN provided by the user to authenticate. - POST Request body
Headers: Content-Type: application/json{ "loginType": "FACEBOOK", "socialId": "social12345", "pin": "2344" }- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200{ "error": false, "message": "Verified Pin successfully", "detail": null, "data": true }
POSTCreate (Casino)
- Description
- Creates a new casino.
- Request Endpoint
- POST https://<Example api server address>/casino
- Parameters
- None.
- cURL syntax
curl --include \ --request POST \ --header "Content-Type: application/json" \ --data-binary "{ \"name\" : \"UserApps\", \"videoUrl\" : \"www.youtube.com\", \"imageUrl\" : \"www.google.com\", \"description\" : \"This casino has lot of game apps\", \"website\" : \"www.casino.com\", \"icon\" : \"icon123\", \"banner\" : \"banner234\" }" \ 'https://core.dev.Example.net/api/casino'- POST body attributes (JSON)
Attribute Type Use Description nameString Required The name of a casino. imageUrlString Optional Image url of a casino. videoUrlString Optional Video url of a casino. descriptionString Optional Description of a casino. websiteString Optional Website of a casino. iconString Optional Icon of a casino. bannerString Optional Banner of a casino. - POST body
Headers: Content-Type: application/json{ "name": "UserApps", "videoUrl": "www.youtube.com", "imageUrl": "www.google.com", "description": "This casino has lot of game apps", "website": "www.casino.com", "icon": "icon123", "banner": "banner234" }- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200{ "data": { "id": "1ec790fa-7f01-4f40-8483-c0c2797c1346", "updatedBy": "", "name": "UserApps", "videoUrl": "https://s3-us-west-2.amazonaws.com/btc.dev.apdx.www/www.youtube.com", "imageUrl": "https://s3-us-west-2.amazonaws.com/btc.dev.apdx.www/www.google.com", "description": "This casino has lot of game apps", "website": "www.casino.com", "icon": "icon123", "banner": "banner234" }, "detail": null, "error": false, "message": "Creating casino successful" }
DELETEDelete (Existing Casino)
- Description
- Deletes an existing casino.
- Request Endpoint
- DELETE https://<Example api server address>/casino/{id}
- Parameters
Parameter Type Use Description id String Required UUID of an existing casino. - cURL syntax
curl --include \ --request DELETE \ 'https://core.dev.Example.net/api/casino/id'- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200{ "data": true, "detail": null, "error": false, "message": "Deleting casino successful" }
GETFetch All (Existing Casinos)
- Description
- Gets all existing casinos.
- Request Endpoint
- GET https://<Example api server address>/casino
- Parameters
- None.
- cURL syntax
curl --include \ 'https://core.dev.Example.net/api/casino'- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200{ "data": [ { "id": "38d09d6e-12e1-44cb-ba2f-c69afc2806f3", "updatedBy": "", "name": "UserAppCas", "videoUrl": "https://s3-us-west-2.amazonaws.com/btc.dev.apdx.www/UserAppCas", "imageUrl": "https://s3-us-west-2.amazonaws.com/btc.dev.apdx.www/UserAppCas", "description": null, "website": null, "icon": null, "banner": null }, { "id": "d07de3bd-f1f2-48c9-b880-97c8649ced97", "updatedBy": "", "name": "UserAppCas1", "videoUrl": "https://s3-us-west-2.amazonaws.com/btc.dev.apdx.www/UserAppCas1", "imageUrl": "https://s3-us-west-2.amazonaws.com/btc.dev.apdx.www/UserAppCas1", "description": null, "website": null, "icon": null, "banner": null }, { "id": "1ec790fa-7f01-4f40-8483-c0c2797c1346", "updatedBy": "", "name": "UserApps", "videoUrl": "https://s3-us-west-2.amazonaws.com/btc.dev.apdx.www/www.youtube.com", "imageUrl": "https://s3-us-west-2.amazonaws.com/btc.dev.apdx.www/www.google.com", "description": "icon123.com", "website": "www.casino.com", "icon": "icon123.com", "banner": "banner234.com" } ], "detail": null, "error": false, "message": "Fetching casinos successful" }
GETFetch Casino With Featured And Latest Application
- Description
- Fetches a Casino with a featured and latest application.
- Request Endpoint
- GET https://<Example api server address>/casino/{id}/search
- Parameters
Parameter Type Use Description id String Required The application id. - cURL syntax
curl --include \ 'https://core.dev.Example.net/api/casino/id/search'- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200{ "data": { "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": "8bbba7f9-a8dd-4b84-abc8-19899b2cf0a7", "latestAppId": "8bbba7f9-a8dd-4b84-abc8-19899b2cf0a7" }, "detail": null, "error": false, "message": "Fetching casino detail successful" }
GETFetch Categories With List of Apps for a Particular CasinoId
- Description
- Fetches categories with a list of applications for a particular casinoId.
- Request Endpoint
- GET https://<Example api server address>/application/by/casino/{id}
- Parameters
Parameter Type Use Description id String Required Id of a casino. - cURL syntax
curl --include \ 'https://core.dev.Example.net/api/application/by/casino/id'- 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, "numberOfElements": 2, "sort": null, "first": true, "size": 70, "number": 0 }, "detail": null, "error": false, "message": "Fetching casino applications by category successful." }
GETFetch Details
- Description
- Fetches all the details of an existing casino.
- Request Endpoint
- GET https://<Example api server address>/casino/{id}
- Parameters
Parameter Type Use Description id String Required UUID of an existing casino. - cURL syntax
curl --include \ 'https://core.dev.Example.net/api/casino/id'- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200{ "data": { "id": "d07de3bd-f1f2-48c9-b880-97c8649ced97", "updatedBy": "", "name": "UserAppCas1", "videoUrl": "UserAppCas1", "imageUrl": "UserAppCas1", "description": null, "website": null, "icon": null, "banner": null }, "detail": null, "error": false, "message": "Fetching casino detail successful" }
GETFilter by Name
- Description
- Gets an existing casino by the name passed.
- Request Endpoint
- GET https://<Example api server address>/casino/by/name/{name}
- Parameters
Parameter Type Use Description name String Required Name of an existing casino. - cURL syntax
curl --include \ 'https://core.dev.Example.net/api/casino/by/name/name'- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200{ "data": [ { "id": "1ec790fa-7f01-4f40-8483-c0c2797c1346", "updatedBy": "", "name": "UserApps", "videoUrl": "https://s3-us-west-2.amazonaws.com/btc.dev.apdx.www/www.youtube.com", "imageUrl": "https://s3-us-west-2.amazonaws.com/btc.dev.apdx.www/www.google.com", "description": "This casino has lot of game apps", "website": "www.casino.com", "icon": "icon123", "banner": "banner234" } ], "detail": null, "error": false, "message": "Fetching casino detail successful" }
GETPrefill User Detail
- Description
- Allows a casino to fetch a user’s information.
- Request Endpoint
- GET https://<Example api server address>/user/{id}/casino/credentials
- Parameters
Parameter Type Use Description id String Required The UUID of a user. - cURL syntax
curl --include \ 'https://core.dev.Example.net/api/user/id/casino/credentials'- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200{ "error": false, "message": "Transferred Credentials to Casino successfully", "detail": null, "data": { "id": "0bdfddfd-8dcd-4744-95e3-a6a3c74ac7b5", "firstName": null, "lastName": null, "fullName": null, "profileName": null, "profileImagePath": null, "registrationDate": null, "birthDateDay": null, "birthDateMonth": null, "birthDateYear": null, "locationCountry": null, "locationZipCode": null, "timezone": null, "userSetting": null, "socialAuthenticationChannels": [ { "loginType": "FACEBOOK", "socialId": "social12345", "addedOn": 1450074164767, "lastUsedOn": 1450074164767, "deletedOn": null } ], "emailAuthenticationChannels": [ { "loginType": "EMAIL", "primary": null, "emailAddress": "rn.shruti@gmail.com", "emailVerificationStatus": "VERIFIED", "emailPinResetStatus": null, "addedOn": 1450074164767, "lastUsedOn": 1450074164767, "deletedOn": null } ], "mobileAuthenticationChannels": [ { "loginType": "MOBILE", "primary": null, "mobileNumber": "+918050022027", "mobileVerificationStatus": "VERIFIED", "mobilePinResetStatus": null, "addedOn": 1450074164767, "lastUsedOn": 1450074164767, "deletedOn": null } ], "addresses": null, "status": null, "verified": false, "wrongPinAttempts": 0, "pinCreated": false, "paymentMethods": null } }
PUTUpdate (Casino Info)
- Description
- Updates an existing casino's information.
- Request Endpoint
- PUT https://<Example api server address>/casino/{id}
- Parameters
Parameter Type Use Description id String Required UUID of an existing casino. - cURL syntax
curl --include \ --request PUT \ --header "Content-Type: application/json" \ --data-binary "{ \"icon\": \"icon\", \"banner\": \"banner\", \"makeActive\": true }" \ 'https://core.dev.Example.net/api/casino/id'- PUT body
Headers: Content-Type: application/json{ "icon": "icon", "banner": "banner", "makeActive": true }- Response body
Headers: Content-Type: application/json | HTTPS Status Code: 200{ "data": { "id": "1ec790fa-7f01-4f40-8483-c0c2797c1346", "updatedBy": "", "name": "UserApps", "videoUrl": "https://s3-us-west-2.amazonaws.com/btc.dev.apdx.www/www.youtube.com", "imageUrl": "https://s3-us-west-2.amazonaws.com/btc.dev.apdx.www/www.google.com", "description": "icon123.com", "website": "www.casino.com", "icon": "icon123", "banner": "banner234" }, "detail": null, "error": false, "message": "Editing casino successful" }