Top
Cancel a given campaign to be scheduled. The campaign is sent back to draft mode.
URL:
https://api.fanbridge.com/[version]/email_campaign/cancel_schedule.[format]?token=[token]&signature=[signature]
Supported request methods:
POST
Parameters:
-
campaign_id
integer
(required)
Campaign ID.
Returns:
none
Top
Create a new email campaign.
URL:
https://api.fanbridge.com/[version]/email_campaign/create.[format]?token=[token]&signature=[signature]
Supported request methods:
POST
Parameters:
-
type
string
(required)
Campaign type. Allowed types are:
- plaintext: Plain text format (no styles)
- html: HTML format (with styles)
- absplit: HTML format and will be sent using
Subject Optimizer
-
name
string
(required)
A name for the new campaign.
The limit is 100 characters long.
-
subject
string
(required)
Campaign email subject.
The limit is 100 characters long.
-
from
integer
Email ID address for 'from' field.
You can fetch all available email IDs with
email_campaign / get_from_addresses method.
Default value is '0' (your main email ID).
-
content_html
string
(required if type is 'html' or 'absplit')
HTML content of the email body.
-
content_text
string
(required if type is 'plaintext', otherwise this will be
created from 'content_html')
Plain text content of the email body.
-
view_in_browser
boolean
Whether we want to show a link for accessing the campaign from browser or not.
Default value is 'true'.
-
facebook_like
boolean
Whether we want to include a Facebook Like button or not.
Default value is 'false'.
-
text_links_track
boolean
Whether we want to track user clicks in links or not.
Default value is 'false'.
-
tourdates
boolean
Whether campaign has tourdate info asociated or not.
Default value is 'false'.
-
ab
array
(required if type is 'absplit')
Subject Optimizer
-
subject_b
string
(required)
Test email subject. This must not be the same
as 'subject' param and has a limit of 100 characters.
-
ab_size
integer
(required)
Percentage of your campaign to send between Subject A and Subject B.
Allowed values are: 5, 10,
20, 30, 40,
50.
-
send_after_period
float
(required)
Waiting time (in days) before the rest of the campaign is sent.
Allowed values are: 0.5 (12 hours), 1,
2, 3, 4,
5, 10.
Returns:
-
id
integer
The ID of the newly created campaign.
Top
Set the subscribers targeting of a given campaign.
URL:
https://api.fanbridge.com/[version]/email_campaign/create_targeting.[format]?token=[token]&signature=[signature]
Supported request methods:
POST
Parameters:
-
campaign_id
integer
(required)
Campaign ID.
-
groups
array
A bunch of groups IDs to which this campaign will be sent to.
You can fetch your available groups with
email_group / fetch_all method.
-
zip_codes
array
A bunch of zip groups to which this campaign will be sent to. You can add as much
zips groups as you wish. Each zip group must have the following form:
-
zip
string
(required)
Zip code.
-
distance
integer
Distance ratio. Limits are from 0 to 10000 miles.
-
filters
array
FanRank™ filters for the sending.
Allowed values are: 'undefined', 'super',
'casual', 'risk'.
Returns:
none
Top
Returns the data of a given campaign.
URL:
https://api.fanbridge.com/[version]/email_campaign/fetch.[format]?token=[token]&signature=[signature]
Supported request methods:
GET
Parameters:
-
campaign_id
integer
(required)
Campaign ID.
Returns:
-
type
string
Campaign type. Possible values are:
- plaintext: Plain text format (no styles)
- html: HTML format (with styles)
- absplit: HTML format +
Subject Optimizer
-
name
string
Campaign name.
-
subject
string
Email subject.
-
from
integer
Email ID address.
-
content_html
string
HTML content of the email body.
-
content_text
string
Plain text content of the email body.
-
view_in_browser
boolean
Whether the link for accessing the campaign from
browser is enabled or not.
-
facebook_like
boolean
Whether the Facebook Like button is enabled or not.
-
text_links_track
boolean
Whether user tracking is enabled or not.
-
tourdates
boolean
Whether campaign has tourdate info asociated or not.
-
status
string
Actual status of the campaign, possible values are: 'Scheduled','Sent','Draft','Running'.
-
ab
array
Subject Optimizer
-
subject_b
string
Test email subject.
-
ab_size
integer
Percentage of campaign to send between Subject A and Subject B.
Possible values are: 5, 10,
20, 30, 40,
50.
-
send_after_period
float
Waiting time (in days) before the rest of the campaign is sent.
Possible values are: 0.5 (12 hours), 1,
2, 3, 4,
5, 10.
Top
Returns all campaigns for the user.
URL:
https://api.fanbridge.com/[version]/email_campaign/fetch_all.[format]?token=[token]&signature=[signature]
Supported request methods:
GET
Parameters:
-
offset
integer
The resultset offset to start. Default value is '0'.
-
limit
integer
The limit amount of results to retrieve.
Default and max value is '50'.
-
status
string
Campaign status.
Returns:
-
id
integer
Campaign ID.
-
type
string
Campaign type. Possible values are:
- plaintext: Plain text format (no styles)
- html: HTML format (with styles)
- absplit: HTML format +
Subject Optimizer
-
status
string
Campaign status.
-
name
string
Campaign name.
-
subject
string
Email subject.
-
created_on
string
Campaign creation date in ISO format (YYYY-MM-DD HH:MM:SS) on
EST timezone.
-
scheduled_on
string
Campaign schedule date in ISO format (YYYY-MM-DD HH:MM:SS) on
EST timezone.
-
ab
array
Subject Optimizer
-
subject_b
string
Test email subject.
-
ab_size
integer
Percentage of campaign to send between Subject A and Subject B.
Possible values are: 5, 10,
20, 30, 40,
50.
-
send_after_period
float
Waiting time (in days) before the rest of the campaign is sent.
Possible values are: 0.5 (12 hours), 1,
2, 3, 4,
5, 10.
Top
Returns the already verified accounts of the current user, needed to set the from address of an email campaign.
URL:
https://api.fanbridge.com/[version]/email_campaign/get_from_addresses.[format]?token=[token]&signature=[signature]
Supported request methods:
GET
Parameters:
none
Returns:
-
id
integer
Email ID.
-
email
string
Email string.
-
name
string
Band name.
Top
Returns the schedule datetime of a given campaign.
URL:
https://api.fanbridge.com/[version]/email_campaign/get_schedule.[format]?token=[token]&signature=[signature]
Supported request methods:
GET
Parameters:
-
campaign_id
integer
(required)
Campaign ID.
Returns:
-
date_time
string
Date and Time of the scheduled campaign
in ISO format (YYYY-MM-DD HH:MM:SS) on EST timezone.
Top
Returns the subscribers targeting of a given campaign.
URL:
https://api.fanbridge.com/[version]/email_campaign/get_targeting.[format]?token=[token]&signature=[signature]
Supported request methods:
GET
Parameters:
-
campaign_id
integer
(required)
Campaign ID.
Returns:
-
send_to_all
boolean
Whether campaign was targeted to all subscribers or not.
-
groups
array
Groups to which this campaign will be sent to.
-
zip_codes
array
Zip groups to which this campaign will be sent to.
-
zip
string
Zip code.
-
distance
integer
Distance ratio.
-
filters
array
FanRank™ filters for the sending.
Possible values are: 'undefined', 'super',
'casual', 'risk'.
Top
Set the datetime to schedule a given campaign.
URL:
https://api.fanbridge.com/[version]/email_campaign/schedule.[format]?token=[token]&signature=[signature]
Supported request methods:
POST
Parameters:
-
campaign_id
integer
(required)
Campaign ID.
-
date_time
string
(required)
Date and Time to schedule this campaign
in ISO format (YYYY-MM-DD HH:MM:SS) on EST timezone. You can use
"NOW" to refer to the current date and time.
Returns:
none
Top
Set the given campaign to be sent to all the subscribers.
URL:
https://api.fanbridge.com/[version]/email_campaign/target_all.[format]?token=[token]&signature=[signature]
Supported request methods:
POST
Parameters:
-
campaign_id
integer
(required)
Campaign ID.
Returns:
none
Top
Update the actual data of a given campaign.
URL:
https://api.fanbridge.com/[version]/email_campaign/update.[format]?token=[token]&signature=[signature]
Supported request methods:
POST
Parameters:
-
campaign_id
integer
(required)
Campaign ID.
-
type
string
(required)
Campaign type. Allowed types are:
- plaintext: Plain text format (no styles)
- html: HTML format (with styles)
- absplit: HTML format and will be sent using
Subject Optimizer
-
name
string
(required)
A name for the new campaign.
The limit is 100 characters long.
-
subject
string
(required)
Campaign email subject.
The limit is 100 characters long.
-
from
integer
Email ID address for 'from' field.
You can fetch all available email IDs with
email_campaign / get_from_addresses method.
Default value is '0' (your main email ID).
-
content_html
string
(required if type is 'html' or 'absplit')
HTML content of the email body.
-
content_text
string
(required if type is 'plaintext', otherwise this will be
created from 'content_html')
Plain text content of the email body.
-
content_text_from_html
boolean
Set to 'true' if you want to automatic update the
plain text content from HTML content.
-
view_in_browser
boolean
Whether we want to show a link for accessing the campaign
from browser or not. Default value is 'true'.
-
facebook_like
boolean
Whether we want to include a Facebook Like button or not.
Default value is 'false'.
-
text_links_track
boolean
Whether we want to track user clicks in links or not.
Default value is 'false'.
-
tourdates
boolean
Whether campaign has tourdate info asociated or not.
Default value is 'false'.
-
ab
array
(required if type is 'absplit')
Subject Optimizer
-
subject_b
string
(required)
Test email subject. This must not be the same
as 'subject' param and has a limit of 100 characters.
-
ab_size
integer
(required)
Percentage of your campaign to send between Subject A and Subject B.
Allowed values are: 5, 10,
20, 30, 40,
50.
-
send_after_period
float
(required)
Waiting time (in days) before the rest of the campaign is sent.
Allowed values are: 0.5 (12 hours), 1,
2, 3, 4,
5, 10.
Returns:
none
Top
Get the analytics summary of a campaign.
URL:
https://api.fanbridge.com/[version]/email_campaign/analytics_summary.[format]?token=[token]&signature=[signature]
Supported request methods:
GET
Parameters:
-
campaign_id
integer
(required)
Campaign ID.
Returns:
-
sent
integer
Count of campaign sent emails.
-
unique_opens
integer
Count of campaign emails unique opened.
-
opens
integer
Count of campaign emails opened.
-
bounced
integer
Count of campaign emails bounced.
-
unopens
integer
Count of campaign emails unopened.
-
abuse
integer
Count of campaign emails abused.
-
unsubscribed
integer
Count of campaign emails unsubscribed.
-
forwarded
integer
Count of campaign emails forwarded.
-
links_clicks
integer
Tracking of links.
-
url
string
URL of the link clicked.
-
clicks
integer
Count of clicks of the URL.
Top
Add a new subscriber to the current user list.
URL:
https://api.fanbridge.com/[version]/subscriber/add.[format]?token=[token]&signature=[signature]
Supported request methods:
POST
Parameters:
-
firstname
string
Subscriber firstname.
-
lastname
string
Subcriber lastname.
-
email
string
(required)
Subscriber email address.
-
address
string
Subscriber main address.
-
address2
string
Subscriber secondary address.
-
zip_code
integer
Subscriber zip code info.
-
city
string
Subscriber city name.
-
state
string
Subscriber state name.
You can fetch all available states with
region / get_states method.
-
country
string
Subscriber country ISO code.
You can fetch all available countries with
region / get_countries method.
-
cellphone
string
Subscriber cellphone number.
-
carrier
integer
(required if cellphone is provided)
Cellphone carrier.
You can fetch all available carrier IDs with
text_subscriber / get_carriers method.
-
year
integer
Subscriber age.
-
gender
string
Subscriber gender.
Allowed values are: female, male
-
format
string
Email sending format.
Allowed values are: html, text
-
ip
string
Detected subscriber IP address.
Default value is IP detected by the server.
-
myspace_url
string
Subscriber MySpace URL.
-
twitter_url
string
Subscriber Twitter URL.
-
notes
string
Some usefull description.
-
groups
array
Groups for adding the subscriber to.
Returns:
-
id
integer
The ID of the newly added subscriber.
Top
Counts the total of subscribers if none parameter have been passed. Counts the total of subscribers
grouping by zip code, if some bunch of zip codes have been passed.
URL:
https://api.fanbridge.com/[version]/subscriber/count.[format]?token=[token]&signature=[signature]
Supported request methods:
GET
Parameters:
none
Or
-
zip_codes
array
A bunch of zip groups to get members count from. Each zip group must have the
following form:
-
zip
string
(required)
Zip code.
-
distance
integer
Distance ratio. Limits are from 0 to 10000 miles.
Returns:
-
count
integer
The total subscribers count.
Or
-
zip
string
Zip code.
-
distance
integer
Distance ratio.
-
count
integer
Members count for this zip code and ratio.
Top
Makes bulk of imports.
URL:
https://api.fanbridge.com/[version]/subscriber/import.[format]?token=[token]&signature=[signature]
Supported request methods:
POST
Parameters:
-
subscribers
array
(required)
The list of subscribers to import.
-
firstname
string
Subscriber firstname.
-
lastname
string
Subcriber lastname.
-
email
string
(required)
Subscriber email address.
-
address
string
Subscriber main address.
-
address2
string
Subscriber secondary address.
-
zip_code
integer
Subscriber zip code info.
-
city
string
Subscriber city name.
-
state
string
Subscriber state name.
You can fetch all available states with
region / get_states method.
-
country
string
Subscriber country ISO code.
You can fetch all available countries with
region / get_countries method.
-
cellphone
string
Subscriber cellphone number.
-
carrier
integer
(required if cellphone is provided)
Cellphone carrier.
You can fetch all available carrier IDs with
text_subscriber / get_carriers method.
-
year
integer
Subscriber age.
-
gender
string
Subscriber gender.
Allowed values are: female, male
-
format
string
Email sending format.
Allowed values are: html, text
-
myspace_url
string
Subscriber MySpace URL.
-
twitter_url
string
Subscriber Twitter URL.
-
notes
string
Some usefull description.
-
groups
array
Groups for adding the subscriber to.
-
welcome_email
boolean
Whether we want to send a welcome email or not.
-
welcome_message
string
A custom welcome message for all new subscribers.
Returns:
-
id
integer
The ID of the newly started import.
Top
Cancels an already started import process.
URL:
https://api.fanbridge.com/[version]/subscriber/cancel_import.[format]?token=[token]&signature=[signature]
Supported request methods:
POST
Parameters:
-
import_id
integer
(required)
Import ID.
Returns:
none
Top
Gets the status and report of a started/finished import process.
URL:
https://api.fanbridge.com/[version]/subscriber/import_status.[format]?token=[token]&signature=[signature]
Supported request methods:
GET
Parameters:
-
import_id
integer
(required)
Import ID.
Returns:
-
status
string
Current status of the process. Possible values are:
- pending: Import process is waiting to start.
- running: Import process is running.
- canceled: Import process was canceled.
- finished: Import process was finished.
-
progress
mixed
The progress percentage of the process if running; empty otherwise.
-
report
array
Current statistics for the current import process.
-
msl
integer
Master supression list: Users not allowed to send emails to.
-
fan_unsubscribed
integer
Subscribers that were previously unsubscribed by themselves.
-
bounces
integer
Rejected subscribers by the system (unexistent email probably).
-
invalid_address
integer
Subscribers with invalid email addresses.
-
updated
integer
Updated subscribers.
-
success
integer
Added subscribers.
Top
Creates a new fan question.
URL:
https://api.fanbridge.com/[version]/fan_question/create.[format]?token=[token]&signature=[signature]
Supported request methods:
POST
Parameters:
-
question
string
(required)
The question to do.
-
weekly_digest
boolean
Whether we want to subscribe the fan to the FanBridge newsletter.
Default value is 'false'.
-
ip
string
Fan detected IP address. Default value is detected IP from server.
-
subscriber_id
integer
If the fan is already a subscriber of the account, you can provide
they subscriber ID to identify them. Otherwise, the question will be sent as "Anonymous".
Returns:
-
fanquestion_id
integer
New fan question ID.
Top
Returns a specific fan question.
URL:
https://api.fanbridge.com/[version]/fan_question/fetch.[format]?token=[token]&signature=[signature]
Supported request methods:
GET
Parameters:
-
id
integer
(required)
Fan Question ID.
Returns:
-
id
integer
Fan Question ID.
-
answered
boolean
Whether the question has been answered or not.
-
media_type
string
The text type of the question.
-
question
string
Text of the question.
-
date_question
string
The date the question was made.
-
default_question
string
The automatic question made for the system on subscribing.
-
status
string
The status of the question. Possible values are:
- read: Question has been already chcked.
- unread: Question has not been checked yet.
- deleted: Question has been deleted.
-
answer
string
Text of the answer.
-
date_answer
string
The date the question was answered.
-
subscriber_id
integer
ID of the user that made the question.
-
email
string
[Deprecated]
-
subscriber_email
string
Subscriber email.
-
user_id
integer
User ID.
-
subscriber_enabled
boolean
Whether the subscriber is enabled or not.
-
subscribed
boolean
Whether the subscriber is email subscribed or not.
-
question_to_post
string
Question for posting.
Top
Returns all fan question.
URL:
https://api.fanbridge.com/[version]/fan_question/fetch_all.[format]?token=[token]&signature=[signature]
Supported request methods:
GET
Parameters:
-
offset
integer
Records offset to start from. Default value is '0'.
-
limit
integer
Limit of results to get for a page. Default value is '100'.
-
type
string
Whether we should apply a filter for results. Possible values are:
- answered: All answered questions.
- unanswered: All unanswered questions.
- all: All questions (default).
Returns:
-
array
A bunch of Fan Questions. Each group has the following fields:
-
id
integer
Fan Question ID.
-
answered
boolean
Whether the question has been answered or not.
-
media_type
string
The text type of the question.
-
question
string
Text of the question.
-
date_question
string
The date the question was made.
-
default_question
string
The automatic question made for the system on subscribing.
-
status
string
The status of the question. Possible values are:
- read: Question has been already chcked.
- unread: Question has not been checked yet.
- deleted: Question has been deleted.
-
answer
string
Text of the answer.
-
date_answer
string
The date the question was answered.
-
email
string
[Deprecated]
-
subscriber_email
string
Subscriber email.
Top
Returns the total of fan question (filtered by type or not).
URL:
https://api.fanbridge.com/[version]/fan_question/count.[format]?token=[token]&signature=[signature]
Supported request methods:
GET
Parameters:
-
type
integer
Type of Fan Question to count.
Returns:
-
count
integer
The total of filtered (or not) Fan Questions.
Top
Answers a Fan Question.
URL:
https://api.fanbridge.com/[version]/fan_question/update.[format]?token=[token]&signature=[signature]
Supported request methods:
POST
Parameters:
-
id
integer
(required)
Fan Question ID.
-
answer
string
(required)
The text of the answer.
-
edit
boolean
Whether we are updating an already answered question or not.
Returns:
none
Top
Deletes a Fan Question.
URL:
https://api.fanbridge.com/[version]/fan_question/delete.[format]?token=[token]&signature=[signature]
Supported request methods:
POST
Parameters:
-
id
integer
(required)
Fan Question ID.
Returns:
none
Top
Marks a Fan Question as read.
URL:
https://api.fanbridge.com/[version]/fan_question/mark_as_read.[format]?token=[token]&signature=[signature]
Supported request methods:
POST
Parameters:
-
id
integer
(required)
Fan Question ID.
Returns:
none