Created
October 9, 2012 19:46
-
-
Save JustinAiken/3860995 to your computer and use it in GitHub Desktop.
Logmycalls API methods for routes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get "http://dev.api.logmycalls.com/services/createRoute", | |
{ | |
api_key: API_KEY, | |
api_secret: API_SECRET, | |
criteria: | |
{ | |
tracking_number: 8013334646, | |
message: "blank", | |
default_ringto: 4358675309, | |
ouid: 1, | |
sms_message: "Thanks for calling", | |
email_to_notify: "test@testers.com", | |
play_disclaimer: "before", | |
name: "geo test route", | |
route_type: "Geo", | |
radius: 500, #how many miles | |
play_branding: true, #Brought to you by LMC! | |
strategy: "Zipcode", # Zipcode or Npa | |
allow_manual_entry: true | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get "http://dev.api.logmycalls.com/services/createRoute", | |
{ | |
api_key: API_KEY, | |
api_secret: API_SECRET, | |
criteria: | |
{ | |
tracking_number: 8013334646, | |
message: "blank", | |
default_ringto: 4358675309, | |
ouid: 1, | |
sms_message: "Thanks for calling", | |
email_to_notify: "test@testers.com", | |
play_disclaimer: "before", | |
name: "ivr test route", | |
route_type: "Ivr", | |
repeat_greeting: true, | |
options: | |
[ | |
{value: 1, ouid: 1, target_did: "888TESTNUM" }, #value = button on the phone (1-9) | |
{value: 3, ouid: 1, target_did: "888TESTNUM" }, #ouid = ouid of the ringto | |
{value: 5, ouid: 1, target_did: "888TESTNUM" } #you can probably figure out target_did :p | |
] | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get "http://dev.api.logmycalls.com/services/createRoute", | |
{ | |
api_key: API_KEY, | |
api_secret: API_SECRET, | |
criteria: | |
{ | |
tracking_number: 8013334646, | |
message: "blank", | |
default_ringto: 4358675309, | |
ouid: 1, | |
sms_message: "Thanks for calling", | |
email_to_notify: "test@testers.com", | |
play_disclaimer: "before", | |
name: "outbound test route", | |
route_type: "Outbound", | |
pin: "1234", #PIN number; | |
out_disclaimer: true, #Whether to play the disclaimer to the dialed party | |
out_prompt: true # Whether to play a helpful audio prompt | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get "http://dev.api.logmycalls.com/services/createRoute", | |
{ | |
api_key: API_KEY, | |
api_secret: API_SECRET, | |
criteria: | |
{ | |
tracking_number: 8013334646, | |
message: "blank", | |
default_ringto: 4358675309, | |
ouid: 1, | |
sms_message: "Thanks for calling", | |
email_to_notify: "test@testers.com", | |
play_disclaimer: "before", | |
name: "Schedule test route", | |
route_type: "Schedule", | |
timezone: -6, #offset from GMT; -6 is MST | |
options: | |
[ | |
{day: 1, from_time: 1200, to_time: 2400, ouid: 1, target_did: "888TESTNUM" }, #from_time/to_time - 0000-2400 | |
{day: 3, from_time: 1200, to_time: 2400, ouid: 1, target_did: "888TESTNUM" }, #day = 1-7 | |
{day: 5, from_time: 1200, to_time: 2400, ouid: 1, target_did: "888TESTNUM" } | |
] | |
}}) | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get "http://dev.api.logmycalls.com/services/createRoute", | |
{ | |
api_key: API_KEY, | |
api_secret: API_SECRET, | |
criteria: | |
{ | |
tracking_number: 8013334646, #tracking, dnis, etc | |
message: "blank", #Either include .wav at the end, or pure "blank" for no message | |
default_ringto: 4358675309, | |
ouid: 1, #OUID the route belongs to | |
sms_message: "Thanks for calling", | |
email_to_notify: "test@testers.com", | |
play_disclaimer: "before", #before/after/never | |
name: "simple test route", | |
route_type: "Simple" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get "http://dev.api.logmycalls.com/services/deleteRoute", | |
{ | |
api_key: API_KEY, | |
api_secret: API_SECRET, | |
criteria: | |
{ | |
tracking_number: 1113337777 #Number of the route to delete | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get "http://dev.api.logmycalls.com/services/showRoute", | |
{ | |
api_key: API_KEY, | |
api_secret: API_SECRET, | |
criteria: | |
{ | |
tracking_number: 1113337777 #Number of the route show | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment