Skip to content

Instantly share code, notes, and snippets.

View rohithBirdeye's full-sized avatar

Rohith Nedunuri rohithBirdeye

  • BirdEye
  • Palo Alto
View GitHub Profile
curl -X PUT \
'https://api.birdeye.com/resources/v1/business/153977243474224?api_key=uu7qrdki2HkQ7H7yf3diI92dkQ6uy7Hd' \
-H 'accept: application/json' \
-H 'content-type: application/json' \
-d '{
"socialProfileURLs": {
"instagramUrl":"https://www.instagram.com/carpetonefh/"
}
}'
Reactivation
curl -X POST -H "Content-type: application/json" -H'Accept:application/json' 'http://api.birdeye.com:8080/resources/v1/business/restore/{Long bId}' -v
// CloseLost && Remove
curl -X PUT -H "Content-type: application/json" -H'Accept:application/json' 'http://api.demo11.birdeye.com:8080/resources/v1/business/{Long bId}/closedlost' -v
curl -X PUT \
'https://bizappsapi.birdeye.com/operations/billing/290813424/pricingtier?api_key=uu7qrdki2HkQ7H7yf3diI92dkQ6uy7Hd' \
-H 'accept: application/json' \
-H 'content-type: application/json'
-d '{
"discountType":"tier",
"minSubscriptionQuantity":2,
"messages":[
{
"startQty":1,
Whitelabel Reseller users
select distinct
u.first_name as firstName,
u.last_name as lastName,
u.email_id as email,
u.phone as phone,
b.business_id as businessId,
b.name as businessName
from
{
"recipient_count": 99,
"recipients": [
{
"id": "YWRlbnRAdHJvcGljYW5hLm5ldA==",
"email": "adent@tropicana.net",
"created_at": 1552332296,
"updated_at": 1552332296,
"last_emailed": null,
"last_clicked": null,
curl -X POST \
'https://api.birdeye.com/resources/v1/customer/checkin?api_key=*****&bid=****' \
-H 'accept: application/json' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \' \
-d '{
"checkinConfig" :{
"sendCheckinAfter":"1"
},
"phone":"8123607334","smsEnabled":1,"firstName":"Rohan"
@ResponseBody
@GetMapping(value = "/test/python", produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<?> testPython() throws Exception{
ClassLoader classLoader = getClass().getClassLoader();
File file = new File(classLoader.getResource("interp.py").getFile());
File leadModel = new File(classLoader.getResource("leadmodel.model").getFile());
String[] command = { "/usr/local/bin/python3", file.getAbsolutePath(),"score",leadModel.getAbsolutePath() ,
"{\"Lead ID\": \"00Q3600000WVCNL\", \"Company / Account\": \"Parham Law Firm LLC\", "
+ " \"Industry1\": \"Legal\", \"Marketing Channel\": \"Product emails\", \"Lead Campaign\": "
+ "\"product_email\", \"Lead Sub Campaign\": \"follow_up_v2\", "
public String getLeadScore(String leadJson) throws Exception {
try {
if(StringUtils.isBlank(leadJson))
return null;
String leadObj = "\'"+ leadJson + "\'";
String[] command = { pythonPath, pythonScriptPath + "/interp.py", "score",
pythonScriptPath + "/leadmodel",leadObj};
logger.info(leadgenMarker, "command str {}", Arrays.toString(command));
System.out.println(Arrays.toString(command));
Process p = Runtime.getRuntime().exec(command);
curl -X POST \
'https://api.birdeye.com/resources/v1/review/businessId/150515828177007?sindex=0&sortby=1&sorder=1&count=25&api_key=****' \
-H 'accept: application/json' \
-H 'content-type: application/json' \
-d '{
"fromDate": "04/01/2016",
"toDate": "05/3/2019"
}'
curl -X POST \
http://10.9.11.19:8080/leadgen/leadscore \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{"Lead ID": "00Q3600000WVCNL", "Company / Account": "Parham Law Firm LLC", "Industry1": "Legal", "Marketing Channel": "Product emails", "Lead Campaign": "product_email", "Lead Sub Campaign": "follow_up_v2", "Lead Campaign KW": "%2Bgoogles%20%2Breviews", "Lead Intent": 1, "Lead Life Cycle": "Downgrade - Bad Data/Test", "Country": "United States", "City": "Atlanta", "State/Province": "Georgia", "Zip/Postal Code": 30339, "Business Locations": 1, "Business Phone": "(678) 439-1482", "Website": "www.parhamlaw.net" }'