Developers
Our platform was built to be flexible and intuitive for developers like you. You own all the data you collect with Tradable Bits. Our API and SDK are designed to make it easy to access your fan data, tickets and campaigns at any time, on your terms. Customize the front end of any of your campaigns with the help of our documentation, complete with examples. Our RESTful API helps you access, send or receive fan data from our system to your endpoints quickly and securely. Enrich your Fan CRM and Tickets Analytics with data from other CRM systems through our many integrations. Have any questions about our developers platform? Our support team is happy to help.
Tradable Bits Server API
Most of CRM Data can be accessed with our HTTP based API. Calls operate using JSON data format and can be called with appropriate API Key. System recognises two form of keys: Public and Secret API Keys. Public is meant to be shared and used in insecure environment and Secret key is reserved for server-to-server communications and must be kept private. You can manage key under profile section once you log into Tradable Bits.
API Console
API Access allows you to query Stream and user data using RESTful API, as well as register for push notification from our CRM system. API Reference is broken into sections by topic: Facebook Apps (Campaigns) Data, Stream Data, CRM Data.
Each Request must include api_key as parameter. You can generate an API key in the Manage Centre.
You may try most of our API calls here. Your API Key will be automatically appended if available.
Crm Calls
Description
Aggregate Call to obtain counters based on the custom values in fan activities
Input Parameters
| campaign_title | Name of custom campaign |
| property_name | Name of the property to track |
Result
Array of Counters
Resulting Structure
| account_id | |
| campaign_title | |
| property_name | |
| counter |
Description
Get a list of Campaigns on the account.
Input Parameters
| q | Text based filter to specific campaigns |
| limit | Optional parameter to specify max row count. Max. allowed value is 200 |
Result
Array of structures
Resulting Structure
| account_id | |
| campaign_type | |
| title | |
| page_tab_id | |
| stream_key | |
| app_type | |
| is_active | |
| creation_timestamp | |
| winner_fan_id |
Description
Download incremental list of activities for the account.Paging is implemented with help of usage of max_activity_id and mix_activity_id parameters. In the first call, system will include in meta information about given IDs. Now, by supplying min_activity_id you can fetch next batch of records.
Input Parameters
| min_activity_id | Window Specifier. Will return only activities with activity_id greater than given |
| max_activity_id | Window Specifier. Will return only activities with activity_id less than given |
| limit | Optional parameter to specify max row count. Max. allowed value is 200 |
| crm_campaign_id | Optional Filter to participants of specific campaign |
| activity_date | Optional Filter to participants for specific date |
Result
Structure: {'meta': { 'order':'desc/asc','min_activity_id':xxx,'max_activity_id':xxx},'data':[] }. Data is array with following elements
Resulting Structure
| activity_id | Unique Identifier for the activity |
| account_id | Tradable Bits Account ID |
| fan_id | Unique Identifier for the fan record |
| creation_date | ISO Date of activity |
| campaign_title | Title of the campaign |
| campaign_type | Type of campaign (contest/login/etc) |
| app_type | For contests - type of contest |
| page_tab_id | Contest ID reference (set for contests only) |
| is_subscribed | OptIn flag on this activity |
| creation_timestamp | ISO timestamp of activity |
| crm_campaign_id | Campaign ID reference |
| stream_key | If activity is tied to stream - reference for stream |
| ip_address | IP Address |
| user_key | Facebook/Spotify/etc User Key |
| name | Full Name |
| details | JSON structure of campaign details (varies by campaign) |
| fan | Fan Structure as per documentation |
| networks | List of connected networks |
| idol_names | List of connected Idols |
Description
Fetch a list of existing crm fan tags for the purposes of synchronization. Request is limited to 10000 records max in a single result set.
Input Parameters
| start_date | Window Specifier. Will return only tags with creation timestamp greater than given |
| end_date | Window Specifier. Will return only tags with creation timestamp less than given |
Result
Array
Resulting Structure
| tag_name | |
| tag_id | |
| fan_id | |
| creation_timestamp | |
| first_name | |
| last_name | |
Description
Search for Fan records using CRM Search interface
Input Parameters
| name | Name or Email of the person in question |
| crm_active_days | |
| crm_inactive_days | |
| crm_start_active_date | |
| crm_end_active_date | |
| fan_youngest_age | |
| fan_oldest_age | |
| fan_incl_snapshot_uids | |
| fan_excl_snapshot_uids | |
| fan_tags | |
| fan_networks | |
| fan_is_subscribed | |
| fan_is_optout | |
| fan_is_phone_subscribed | |
| fan_provinces | |
| fan_rating | |
| fan_gender | |
| fan_metro_areas | |
| idol_names | |
| idol_affinity_score | |
| idol_relations | |
| ticket_event_name | |
| ticket_price_code | |
| ticket_start_purchase_date | |
| ticket_end_purchase_date | |
| ticket_venue_name | |
| ticket_purchased_days | |
| ticket_artist_name | |
| ticket_start_event_date | |
| ticket_end_event_date | |
| query_line | |
| ticket_seat_price_min | |
| ticket_seat_price_max | |
| ticket_seat_count_min | |
| ticket_seat_count_max | |
| ticket_is_negative | |
| search_uid | If this parameter is supplied, we will continue returning records from previous search execution |
| limit | Maximum page size. Has to be less than a 1000 |
Result
Array with Meta structure as part of result
Resulting Structure
| fan_id | |
| account_id | |
| name | |
| first_name | |
| last_name | |
| province | |
| latitude | |
| longitude | |
| login_name | |
| creation_timestamp | |
| ip_address | |
| country_code | |
| city | |
| tb_access_code | |
| is_subscribed | |
| rating | |
| phone | |
| birth_date | |
| metro_area | |
| postal_code | |
| fields | |
| image_url | |
| gender | |
| tags | |
| reset_uid |
Description
Get a fan leaderboard based on provided filters
Input Parameters
| start_date | yyyy-mm-dd |
| end_date | yyyy-mm-dd |
| point_name |
Result
Array with Meta structure as part of result
Resulting Structure
| fan_id | |
| first_name | |
| last_name | |
| fan_point_count | number of points based of filter |
| rank | rank of fan among all fans based on filter |
Description
Download incremental list of tickets for the account.Paging is implemented with help of usage of max_ticket_id and min_ticket_id parameters. In the first call, system will include in meta information about given IDs. Now, by supplying min_ticket_id you can fetch next batch of records.
Input Parameters
| min_ticket_id | Window Specifier. Will return only tickets with ticket_id greater than given |
| max_ticket_id | Window Specifier. Will return only tickets with ticket_id less than given |
| min_purchase_date | Date filter option. Will return only tickets on or after a given date |
| max_purchase_date | Date filter option. Will return only tickets on or prior a given date |
| Optionally this parameter allows you to filter tickets to specific user/email address | |
| limit | Optional parameter to specify max row count. Max. allowed value is 3000 |
| data | Additional fields to include: supported value: fan |
Result
Structure: {'meta': { 'order':'desc/asc','min_ticket_id':xxx,'max_ticket_id':xxx},'data':[] }. Data is array with following elements
Resulting Structure
| ticket_id | Unique Identifier for the ticket |
| ticket_key | Remote Tickey Key |
| account_id | Tradable Bits Acount ID |
| email on the ticket | |
| network | type of remote network to fetch ticket |
| event_key | Event Key in remote system |
| event_date | ISO date of the event |
| event_name | Event Name |
| purchase_timestamp | ISO Date |
| paid_amount | Total Paid Amount |
| num_seats | Number of tickets/seats on the purchase |
| artist_name | Artist Name |
| price_code | Price Code or Level |
| venue_name | Name of Venue |
| city | City |
| province | Province or State |
| country_code | ISO country code |
| metro_area | DMA or CMA Area (Currently only for US/CA) |
| postal_code | Postal Code / ZIP |
| customer_key | ID of customer in remote system |
Description
Create new ticket and Corresponding Fan Record
Input Parameters
| first_name | Required. |
| last_name | Required. |
| phone | |
| Required. | |
| customer_key | Key of the customer in the remote system |
| ticket_key | Optional. Unique identifier for the line item (i.e. unique per price code and amount). |
| purchase_timestamp | Required. YYYY-MM-DD HH:MI:SS in GMT timezone |
| paid_amount | Required. Numeric value for line item |
| num_seats | Required. Number of seats purchased |
| price_code | Optional. Price level or code of line item |
| phone | |
| city | |
| province | |
| postal_code | |
| country_code | |
| event_date | Required. ISO8601 Encoded String |
| event_name | Required. |
| artist_name | |
| venue_name | |
| event_key |
Result
Created Record. Data will be returned as it was loaded in the system. I.e. sanitized
Resulting Structure
| event_date | |
| event_key | |
| artist_name | |
| venue_name | |
| event_name | |
| ticket_id | |
| ticket_key | |
| price_code | |
| purchase_timestamp | |
| paid_amount | |
| num_seats | |
| first_name | |
| last_name | |
| phone | |
| province | |
| country_code | |
| city | |
| metro_area | |
| postal_code | |
| status | success or duplicate if ticket already exists |
Description
Query Wristband/RFID registrations from the database
Input Parameters
| start_date | Date filter option. Will return only tickets on or after a given date |
| end_date | Date filter option. Will return only tickets on or prior a given date |
| Optionally this parameter allows you to filter tickets to specific user/email address | |
| limit | Optional parameter to specify max row count. If omitted, will be set to 1000 |
Result
Structure: {'meta': { 'count':xxx },'data':[] }. Data is array with following elements
Resulting Structure
| registration_key | Unique Identifier for the registration |
| order_key | Remote Ticket Key |
| account_id | Tradable Bits Account ID |
| email on the ticket | |
| event_date | ISO date of the event |
| registration_timestamp | Timestamp of registration. Unix Time |
| creation_timestamp | Timestamp of import. Unix Time |
| price_code | Price Code or Level |
Description
Create new registration and Corresponding Fan Record
Input Parameters
| first_name | Required. |
| last_name | Required. |
| phone | |
| Required. | |
| registration_key | Unique identifier for the line item |
| registration_timestamp | Required. YYYY-MM-DD HH:MI:SS in GMT timezone |
| order_key | |
| price_code | Optional. Price level or code of line item |
| event_date | Optional. Date of the Event. ISO Date |
Result
Created Record. Data will be returned as it was loaded in the system. I.e. sanitized
Resulting Structure
| registration_key | Unique Identifier for the registration |
| order_key | Remote Ticket Key |
| account_id | Tradable Bits Account ID |
| email on the ticket | |
| event_date | ISO date of the event |
| registration_timestamp | Timestamp of registration. Unix Time |
| creation_timestamp | Timestamp of import. Unix Time |
| price_code | Price Code or Level |
Description
Create new Fan Record
Input Parameters
| first_name | |
| last_name | |
| password | |
| login_name | |
| is_subscribed | true/false/on/off |
| phone | |
| birth_date | |
| ip_address |
Result
Created Record
Resulting Structure
| fan_id | |
| account_id | |
| name | |
| first_name | |
| last_name | |
| province | |
| latitude | |
| longitude | |
| login_name | |
| creation_timestamp | |
| ip_address | |
| country_code | |
| city | |
| tb_access_code | |
| is_subscribed | |
| rating | |
| phone | |
| birth_date | |
| metro_area | |
| postal_code | |
| fields | |
| image_url | |
| gender | |
| tags | |
| reset_uid |
Description
Get Specific fan record via ID
Result
Following structure
Resulting Structure
| fan_id | |
| account_id | |
| name | |
| first_name | |
| last_name | |
| province | |
| latitude | |
| longitude | |
| login_name | |
| creation_timestamp | |
| ip_address | |
| country_code | |
| city | |
| tb_access_code | |
| is_subscribed | |
| rating | |
| phone | |
| birth_date | |
| metro_area | |
| postal_code | |
| fields | |
| image_url | |
| gender | |
| tags | |
| reset_uid |
Description
Update Fan Record
Input Parameters
| first_name | |
| last_name | |
| password | |
| login_name | |
| is_subscribed | true/false/on/off |
| phone | |
| birth_date | |
| ip_address |
Result
Updated Record
Resulting Structure
| fan_id | |
| account_id | |
| name | |
| first_name | |
| last_name | |
| province | |
| latitude | |
| longitude | |
| login_name | |
| creation_timestamp | |
| ip_address | |
| country_code | |
| city | |
| tb_access_code | |
| is_subscribed | |
| rating | |
| phone | |
| birth_date | |
| metro_area | |
| postal_code | |
| fields | |
| image_url | |
| gender | |
| tags | |
| reset_uid |
Description
Delete Record
Result
Boolean
Description
Get Fan Networks
Result
JSON
Resulting Structure
| fan_id | |
| account_id | |
| name | |
| user_key | |
| network | |
| creation_timestamp | |
| last_update_timestamp | |
| profile_url | |
| follower_count | |
| props | |
| image_url | |
| access_token | |
| access_secret |
Description
Create/Update/Delete Fan Networks
Input Parameters
| action | create/update/delete |
| name | |
| user_key | Required |
| network | Required. Must be "custom" for create and update |
| creation_timestamp | |
| last_update_timestamp | |
| profile_url | |
| follower_count | |
| props | |
| image_url | |
| access_token | |
| access_secret |
Result
JSON
Description
Get Fan points
Result
Following structure
Resulting Structure
| fan_id | |
| point_uid | |
| point_name | |
| point_count |
Description
award a fan points
Input Parameters
| point_name | |
| point_count |
Result
[]
Description
Merge fan Record with another fan. As part of that fan_id will not longer be valid
Input Parameters
| target_fan_id | Destination Dan Record |
Result
New Fan Record
Resulting Structure
| fan_id | |
| account_id | |
| name | |
| first_name | |
| last_name | |
| province | |
| latitude | |
| longitude | |
| login_name | |
| creation_timestamp | |
| ip_address | |
| country_code | |
| city | |
| tb_access_code | |
| is_subscribed | |
| rating | |
| phone | |
| birth_date | |
| metro_area | |
| postal_code | |
| fields | |
| image_url | |
| gender | |
| tags | |
| reset_uid |
Description
Get list of Fan interests
Result
Array of interest records up to 10 for each network
Resulting Structure
| network | |
| name | |
| follower_count |
Description
Fetch list of idols for a given Fan
Input Parameters
| label_name | Limit Idols to a specific label |
Result
Array of Idols
Resulting Structure
| spotify_follower_count | |
| spotify_uid | |
| facebook_follower_count | |
| description | |
| account_id | |
| idol_uid | |
| idol_name | |
| facebook_id | |
| media_uid | |
| image_url |
Description
Add or remove idol association
Input Parameters
| action | add/delete |
| idol_uid | |
| idol_name | Name for a given (as alternative to UUID) |
Result
Array of current Fan Idols
Resulting Structure
| spotify_follower_count | |
| spotify_uid | |
| facebook_follower_count | |
| description | |
| account_id | |
| idol_uid | |
| idol_name | |
| facebook_id | |
| media_uid | |
| image_url |
Description
Obtain a list of known registrations for the fan. Registration is tied to RFID bracelet or some form of ticket
Input Parameters
| limit | Record Limit |
Result
Array of records
Resulting Structure
| registration_timestamp | |
| account_id | |
| ticket_order_key | |
| price_code | |
| event_date | |
| barcode | |
| fan_id | |
| registration_timestamp | |
| creation_timestamp |
Description
Create new Registration Record for a given Fan
Input Parameters
| registration_timestamp | |
| ticket_order_key | |
| price_code | |
| event_date | |
| barcode | |
| registration_timestamp |
Result
Array of latest registrations
Resulting Structure
| registration_timestamp | |
| account_id | |
| ticket_order_key | |
| price_code | |
| event_date | |
| barcode | |
| fan_id | |
| registration_timestamp | |
| creation_timestamp |
Description
Obtain a list of activities for a given Fan
Input Parameters
| limit | Record Limit |
| campaign_title | Limit results to specific campaign |
Result
Array of records
Resulting Structure
| account_id | |
| fan_id | |
| creation_date | |
| campaign_title | |
| campaign_type | |
| props |
Description
Create new Activity Record for a given Fan
Input Parameters
| campaign_title | Name of custom campaign |
| field_* | Additional meta data as per defined custom fields |
Result
Array of latest activities
Resulting Structure
| account_id | |
| fan_id | |
| creation_date | |
| campaign_title | |
| campaign_type | |
| props |
Description
Get array of defined custom fields on the account
Result
Resulting Structure
| crm_field_key | |
| account_id | |
| field_type | |
| creation_timestamp | |
| field_options | |
| is_mandatory | |
| group_name | |
| is_active |
Streams Calls
Description
Produce a list of currently available streams.
Result
Resulting Structure
| stream_key | |
| account_id | |
| creation_timestamp | |
| stream_name | |
| props | |
| virtual_domain | |
| css_text | |
| javascript_text | |
| record_limit | |
| trust_level | |
| media_map | |
| is_public |
Description
Create new Stream in the system
Input Parameters
| action | create/delete |
| stream_key | |
| stream_name |
Result
Array of streams
Resulting Structure
| stream_key | |
| account_id | |
| creation_timestamp | |
| stream_name | |
| props | |
| virtual_domain | |
| css_text | |
| javascript_text | |
| record_limit | |
| trust_level | |
| media_map | |
| is_public |
Description
Search for approved records in the stream
Input Parameters
| networks | |
| label_key | |
| sku | |
| is_graphic | |
| is_pinned | |
| min_time_key | Max and Min time keys is a way to page through results. As part of Result - system returns max_time_key/min_time_key in the data. |
| max_time_key | Max and Min time keys is a way to page through results. As part of Result - system returns max_time_key/min_time_key in the data. |
| q | |
| start_latitude | |
| end_latitude | |
| start_longitude | |
| end_longitude |
Result
{meta:{min_time_key:xx, max_time_keey:xx, row_count:xxx },data:[] }
Resulting Structure
| stream_key | |
| feed_record_id | |
| record_key | |
| props | |
| creation_timestamp | |
| image_url | |
| src_image_url | |
| video_url | |
| caption | |
| network | |
| record_url | |
| latitude | |
| longitude | |
| links | |
| link_url | |
| link_name | |
| author_id | |
| author_user_key | |
| author_screen_name | |
| author_name | |
| author_image_url | |
| author_status |
Description
Create new Stream Record
Input Parameters
| name | |
| image_url | |
| caption | |
| latitude | |
| longitude | |
| props_* | Ability to store any meta data as part of the record |
Result
Newly Created Record
Resulting Structure
| stream_key | |
| feed_record_id | |
| record_key | |
| props | |
| creation_timestamp | |
| image_url | |
| src_image_url | |
| video_url | |
| caption | |
| network | |
| record_url | |
| latitude | |
| longitude | |
| links | |
| link_url | |
| link_name | |
| author_id | |
| author_user_key | |
| author_screen_name | |
| author_name | |
| author_image_url | |
| author_status |
Description
Fetch a list of stored authors in the stream
Input Parameters
| q | Query String |
Result
Array of author records
Resulting Structure
| stream_key | |
| network | |
| user_key | |
| name | |
| screen_name | |
| creation_timestamp | |
| last_update_timestamp | |
| status | |
| is_follower | |
| post_count |
Description
Get Summary Stats on the stream
Input Parameters
| data | Comma separated list of sections: words, hashtags, labels |
| label_key | Label Filter |
| start_time | optional date filter (specified as unix time) |
| end_time | optional date filter (specified as unix time) |
Result
Summary Structure Record
Resulting Structure
| stream_key | |
| stream_name | |
| total_stored | |
| total | |
| approved_total | |
| authors | |
| reach | |
| last_record_timestamp | |
| words | |
| hashtags | |
| labels |
Description
update or delete a identified author
Input Parameters
| action | create/delete |
| screen_name | |
| status | |
| network | |
| user_key |
Result
Boolean Value
Description
Get individual record
Result
Record Data
Resulting Structure
| stream_key | |
| feed_record_id | |
| record_key | |
| props | |
| creation_timestamp | |
| image_url | |
| src_image_url | |
| video_url | |
| caption | |
| network | |
| record_url | |
| links | |
| link_url | |
| link_name | |
| author_id | |
| author_user_key | |
| author_screen_name | |
| author_name | |
| author_image_url | |
| author_status |
Description
Approve individual Record or Label it accordingly
Input Parameters
| action | approve/remove/label/unlabel |
| label_key |
Result
Update Record Data
Resulting Structure
| stream_key | |
| feed_record_id | |
| record_key | |
| props | |
| creation_timestamp | |
| image_url | |
| src_image_url | |
| video_url | |
| caption | |
| network | |
| record_url | |
| links | |
| link_url | |
| link_name | |
| author_id | |
| author_user_key | |
| author_screen_name | |
| author_name | |
| author_image_url | |
| author_status |
Description
Mark a given record as the one requiring verification (e.g. image url is not valid)
Result
Boolean Value
Description
Execute Stream Request for Remote content on the fly without going through main infrastructure
Input Parameters
| network | |
| source_name | |
| source_type | |
| source_value |
Result
Array of records
Resulting Structure
| stream_key | |
| record_key | |
| creation_timestamp | |
| image_url | |
| video_url | |
| record_url | |
| caption | |
| props | |
| hashtags | |
| network | |
| latitude | |
| longitude | |
| record_media_uid | |
| author_user_key | |
| author_image_url | |
| author_name | |
| author_screen_name |
Description
Get list of Stream Feeds
Result
Array of records
Resulting Structure
| action | create/delete |
| network | |
| source_type | |
| source_name | |
| source_value | |
| label_id | |
| label_key |
Description
Create or update a feed in the stream
Input Parameters
| action | create/delete |
| network | |
| source_type | |
| source_name | |
| source_value | |
| label_key |
Result
Array of Feeds
Resulting Structure
| action | create/delete |
| network | |
| source_type | |
| source_name | |
| source_value | |
| label_id | |
| label_key |
Description
Fetch Existing Access Tokens Configured on the stream
Result
Array of access tokens
Resulting Structure
| stream_key | |
| network | |
| user_name | |
| user_key | |
| creation_timestamp | |
| expiration_timestamp | |
| access_token | |
| token_secret | |
| request_counter |
Description
Update or Create an access token on the stream
Input Parameters
| network | |
| access_token | |
| token_secret | |
| user_name | |
| user_id |
Result
Array of currently enabled networks
Resulting Structure
| stream_key | |
| network | |
| user_name | |
| user_key | |
| creation_timestamp | |
| expiration_timestamp | |
| access_token | |
| token_secret | |
| request_counter |
Sessions Calls
Description
This is integration call to enable third part apps to pass Wifi Authentication Information
Input Parameters
| network | Connected network. Network value can drive other require arguments. Supported: facebook, spotify, email |
| access_token | Mandatory for Facebook/Spotify |
| Optional for Facebook/Spotify | |
| first_name | Optional for Facebook/Spotify |
| last_name | Optional for Facebook/Spotify |
| activity_name | Reference to the Activity or Event name. |
| device_id | Hardware reference if mobile app is used |
| device_network | one of ios/android |
Result
true if call is successful, error otherwise
Description
This is integration call to enable third part apps to pass artist affinity information over to us for proper segmentation
Input Parameters
| network | Connected network. Network value can drive other require arguments. Supported: facebook, spotify,email |
| access_token | Mandatory for Facebook/Spotify |
| Optional for Facebook/Spotify | |
| first_name | Optional for Facebook/Spotify |
| last_name | Optional for Facebook/Spotify |
| idol_name | Reference to the artist name. Idol will be created if it doesn't exist yet |
| device_id | Hardware reference if mobile app is used |
| device_network | one of ios/android |
Result
true if call is successful, error otherwise
Description
This call allows to initialize new session and potentially create new fan Record in the system. It can be used for native and website integration and is essential for proper integration.
Input Parameters
| network | Connected network. Network value can drive other require arguments. Most common values: facebook, spotify, register, connect, reset, email |
| access_token | |
| ip_address | |
| name | |
| phone | |
| password | |
| access_secret | |
| device_id | |
| device_network | |
| field_xxx | Custom field value as configured in custom fields |
Result
New Session Object
Resulting Structure
| session_uid | |
| fan_id | |
| account_id | |
| props | |
| expiration_timestamp |
Description
Get existing Session using ID
Result
Record
Resulting Structure
| session_uid | |
| fan_id | |
| account_id | |
| props | |
| expiration_timestamp |
Description
Fetch current Fan Record
Result
Following Structure
Resulting Structure
| fan_id | |
| account_id | |
| name | |
| first_name | |
| last_name | |
| province | |
| latitude | |
| longitude | |
| login_name | |
| creation_timestamp | |
| ip_address | |
| country_code | |
| city | |
| tb_access_code | |
| is_subscribed | |
| rating | |
| phone | |
| birth_date | |
| metro_area | |
| postal_code | |
| fields | |
| image_url | |
| gender | |
| tags | |
| reset_uid |
Description
Update Current Fan Record
Input Parameters
| first_name | |
| last_name | |
| password | |
| login_name | |
| is_subscribed | true/false/on/off |
| phone | |
| birth_date | |
| ip_address |
Result
Updated Record
Resulting Structure
| fan_id | |
| account_id | |
| name | |
| first_name | |
| last_name | |
| province | |
| latitude | |
| longitude | |
| login_name | |
| creation_timestamp | |
| ip_address | |
| country_code | |
| city | |
| tb_access_code | |
| is_subscribed | |
| rating | |
| phone | |
| birth_date | |
| metro_area | |
| postal_code | |
| fields | |
| image_url | |
| gender | |
| tags | |
| reset_uid |
Description
Get a list of connected networks for a given Fan Record
Result
Array of connected networks
Resulting Structure
| fan_id | |
| account_id | |
| name | |
| user_key | |
| network | |
| creation_timestamp | |
| last_update_timestamp | |
| profile_url | |
| follower_count | |
| props | |
| image_url | |
| access_token | |
| access_secret |
Description
Create/update/delete connected networks for a given Fan Record
Input Parameters
| action | create/update/delete |
| name | |
| user_key | Required |
| network | Required. Must be "custom" for create and update |
| creation_timestamp | |
| last_update_timestamp | |
| profile_url | |
| follower_count | |
| props | |
| image_url | |
| access_token | |
| access_secret |
Result
JSON
Description
Obtain a list of known registrations for the fan. Registration is tied to RFID bracelet or some form of ticket
Input Parameters
| limit | Record Limit |
Result
Array of records
Resulting Structure
| registration_timestamp | |
| account_id | |
| ticket_order_key | |
| price_code | |
| event_date | |
| barcode | |
| fan_id | |
| registration_timestamp | |
| creation_timestamp |
Description
Create new Registration Record for a given Fan
Input Parameters
| registration_timestamp | |
| ticket_order_key | |
| price_code | |
| event_date | |
| barcode | |
| registration_timestamp |
Result
Array of latest registrations
Resulting Structure
| registration_timestamp | |
| account_id | |
| ticket_order_key | |
| price_code | |
| event_date | |
| barcode | |
| fan_id | |
| registration_timestamp | |
| creation_timestamp |
Description
Get Fan points
Result
Following structure
Resulting Structure
| fan_id | |
| point_uid | |
| point_name | |
| point_count |
Description
Fetch current Fan Activities
Input Parameters
| limit | max row count |
| campaign_title | Limit results to specific campaign |
Result
Array of last activities
Resulting Structure
| fan_id | |
| campaign_title | |
| campaign_type | |
| creation_date | |
| creation_timestamp | |
| props |
Description
Fetch current Fan Followed Interests
Result
Array of followings
Resulting Structure
| network | |
| name | |
| follower_count |
Description
Create Activity record to associate with current Fan
Input Parameters
| campaign_title | Name of new Custom Campaign |
| field_* |
Result
Array of last activities
Resulting Structure
| fan_id | |
| campaign_title | |
| campaign_type | |
| creation_date | |
| creation_timestamp | |
| props |
Description
Fetch a list of connected idols
Input Parameters
| label_name | Limit Idols to a specific label |
Result
Array of following structures
Resulting Structure
| spotify_follower_count | |
| spotify_uid | |
| facebook_follower_count | |
| description | |
| account_id | |
| idol_uid | |
| idol_name | |
| facebook_id | |
| media_uid | |
| image_url |
Description
Create or Delete association between current Fan and Idol
Input Parameters
| action | One of: add, delete |
| idol_uid | UUID for a given idol |
| idol_name | Name for a given (as alternative to UUID) |
Result
Array of currently connected idols
Resulting Structure
| spotify_follower_count | |
| spotify_uid | |
| facebook_follower_count | |
| description | |
| account_id | |
| idol_uid | |
| idol_name | |
| facebook_id | |
| media_uid | |
| image_url |
Description
Get a list of events for a session's Fan
Input Parameters
| label_name | Limit Idols to a specific label |
Result
Array of records as per following structure
Resulting Structure
| fan_id | |
| creation_timestamp | |
| event_uid |
Description
Create new association between event and fan or delete existing one
Input Parameters
| action | one of: add or delete |
| event_uid | UUID for a valid event |
Result
ID of event
Idols Calls
Description
Search for an idols in the database
Input Parameters
| idol_name | Search Expression for an idol |
| label_name | Limit Idols to a specific label |
Result
Array of idol structures
Resulting Structure
| spotify_follower_count | |
| spotify_uid | |
| facebook_follower_count | |
| description | |
| account_id | |
| idol_uid | |
| idol_name | |
| facebook_id | |
| media_uid | |
| image_url |
Description
Obtain an idol for a given idol_uid
Result
A structure for a given idol as follows
Resulting Structure
| spotify_follower_count | |
| spotify_uid | |
| facebook_follower_count | |
| description | |
| account_id | |
| idol_uid | |
| idol_name | |
| facebook_id | |
| media_uid | |
| image_url |
Description
Obtain a list of artists related to a given Idol
Input Parameters
| label_name | Optional argument to limit idols with a given label only |
Result
Array of records as per following structure
Resulting Structure
| idol_uid | |
| idol_name | |
| artist_name | |
| facebook_id | |
| image_url |
Description
Based on the search parameters return a list of Idol Events.
Input Parameters
| idol_uid | |
| venue_name | |
| q | |
| label_name | |
| start_date | |
| end_date |
Result
Array of JSON records matching the search
Resulting Structure
| event_uid | |
| account_id | |
| idol_uid | |
| start_timestamp | |
| end_timestamp | |
| venue_name | |
| city | |
| province | |
| country_code | |
| event_url | |
| ticket_url | |
| label_name | |
| idol_name | |
| facebook_id | |
| media_uid | |
| image_url |
Description
Get individual Scheduled Event given event_uid
Result
JSON structure with Event Details or null
Resulting Structure
| event_uid | |
| account_id | |
| idol_uid | |
| start_timestamp | |
| end_timestamp | |
| venue_name | |
| city | |
| province | |
| country_code | |
| event_url | |
| ticket_url | |
| label_name | |
| idol_name | |
| facebook_id | |
| media_uid | |
| image_url |
Reports Calls
Description
Get all shared reports asociated with the current account.
Result
Array of JSON objects as per structure below
Resulting Structure
| report_uid | Identifier of the report |
| report_name | Name of the report |
| report_type | Type of the report. One of 'adwords_adaccount', 'app', 'bot', 'crm', 'fb_adaccount', 'idol', 'sms', 'stream', 'ticket', 'tracker' |
| start_date | Start date for the report's data |
| end_date | End date for the report's data |
| last_access_timestamp | Timestamp for when the report was last accessed |
Description
Get data for a shared report.
Result
Structure: {'<report_type>': {}}. Corresponding object to the report's type is the data for the report, whose structure depends on the report's type. Below is structure for 'fb_adaccount' stats report.
Resulting Structure
| spend | Total spending |
| conversion | Total sales value attributable to ads |
| offline_conversion | Sales value attributable to offline conversion |
| conversion_count | Number of sales |
| impressions | Total number of impressions |
| reach | Total number of unique people reached |
| frequency | Average frequency per unique person |
| cpm | Cost-per-thousand |
| cpa | Cost-per-action |
| roi | Return on investment rate |
| clicks | Total number of clicks |
| ctr | Clickthrough rate |
| cpc | Cost-per-click |
Misc Calls
Description
Get a list of recently created Trackers (last 500 trackers)
Result
Array of JSON objects as per structure below
Resulting Structure
| tracker_id | Identifier for Tracker |
| account_id | |
| creation_timestamp | UNIX timestamp for creation |
| tracker_name | |
| tracker_group_name | |
| target_url | |
| virtual_domain | |
| click_count | |
| tracker_url |
Description
Get individual tracker as specified by ID
Result
JSON structure
Resulting Structure
| tracker_id | Identifier for Tracker |
| account_id | |
| creation_timestamp | UNIX timestamp for creation |
| tracker_name | |
| tracker_group_name | |
| target_url | |
| virtual_domain | |
| click_count | |
| tracker_url |
Description
Create New Tracker for measurement of redirect performance. This call allows to automate creation of Tradable Bits Trackers
Input Parameters
| virtual_domain | Domain. Must be preconfigured and setup by Tradable Bits |
| target_url | |
| tracker_name | |
| tracker_group_name | |
| network | spotify, instagram, facebook, google, twitter or custom |
Result
Upon Success, call will return a structure for created tracker
Resulting Structure
| tracker_id | Identifier for Tracker |
| account_id | |
| creation_timestamp | UNIX timestamp for creation |
| tracker_name | |
| tracker_group_name | |
| target_url | |
| virtual_domain | |
| click_count | |
| tracker_url |
Description
This call allows to store and retrieve back json data structure. Primary use for this call is some form of simple voting, which doesn't require any cheater or inappropriate use detection
Input Parameters
| props | Data structure to save |
Result
The value currently stored under this prop_name
Description
Obtain statistical data on executed campaign
Input Parameters
| start_date | Optional date filter for stats |
| end_date | Optional date filter for stats |
Result
A structure with following fields
Resulting Structure
| page_tab_id | |
| name | |
| total_entries | |
| fan_count | |
| view_count | |
| unique_view_count | |
| subscribers |
Description
Fetch configuration of existing campaign for custom visual or other purposes
Result
A structure of campaign with configured attributes