Difference between revisions of "Reports"

From Advice Local Wiki
Jump to: navigation, search
(Example Response)
(Example Response)
Line 240: Line 240:
 
     "data": [
 
     "data": [
 
         {
 
         {
             "client": 3201926,
+
             "client": 12345,
 
             "partner": 7,
 
             "partner": 7,
 
             "link": "http://www.yelp.com/biz/ginas-pizza-newport-beach-2?osq=Gina%27s+Pizza",
 
             "link": "http://www.yelp.com/biz/ginas-pizza-newport-beach-2?osq=Gina%27s+Pizza",
Line 461: Line 461:
 
         },
 
         },
 
         {
 
         {
             "client": 3201926,
+
             "client": 12345,
 
             "partner": 7,
 
             "partner": 7,
 
             "link": "https://www.google.com/maps?cid=15412785221185897851",
 
             "link": "https://www.google.com/maps?cid=15412785221185897851",
Line 558: Line 558:
 
         },
 
         },
 
         {
 
         {
             "client": 3201926,
+
             "client": 12345,
 
             "partner": 7,
 
             "partner": 7,
 
             "link": "",
 
             "link": "",
Line 581: Line 581:
 
         },
 
         },
 
         {
 
         {
             "client": 3201926,
+
             "client": 12345,
 
             "partner": 7,
 
             "partner": 7,
 
             "link": "http://www.bing.com/local?lid=YN873x105183062",
 
             "link": "http://www.bing.com/local?lid=YN873x105183062",

Revision as of 15:26, 13 December 2017

Trigger a Report

This endpoint will generate a Baseline Report.

API Endpoint

http://p.lssdev.com/legacyclients/{$client_id}/refresh

Example Request

GET /legacyclients/12345/refresh HTTP/1.1
Host: p.lssdev.com
x-api-token: YOUR_API_KEY
Content-Type: application/json

Example Response

{
    "status": 200,
    "success": true,
    "error": null,
    "data": "report initiated"
}

Directory Data Report

API Endpoint

http://p.lssdev.com/legacydirectorydata?client={client_id}

Example Request

GET /legacydirectorydata?client=12345 HTTP/1.1
Host: p.lssdev.com
x-api-token: YOUR_API_KEY
Content-Type: application/json

Example Response

{
    "status": 200,
    "success": true,
    "error": null,
    "data": [
        {
            "client": 12345,
            "partner": 7,
            "data": {
                "dirName": "Chamberofcommerce",
                "dirHandle": "chamberofcommerce",
                "dirQuery": "https://www.chamberofcommerce.com/search/results?what=gina%27s+pizza&where=newport+beach%2C+ca",
                "results": 4,
                "result": [
                    {
                        "link": "https://www.chamberofcommerce.com/newport-beach-ca/25230470-ginas-pizza",
                        "methods": {
                            "url": "https://www.chamberofcommerce.com/search/results?what=gina%27s+pizza&where=newport+beach%2C+ca",
                            "enclosure": "main-content",
                            "enctype": "class"
                        },
                        "title": "Gina's Pizza",
                        "tech": "false",
                        "nap": {
                            "nap": {
                                "name": "Gina's Pizza",
                                "address": "3142 W Balboa Blvd -  Newport Beach, California 92663",
                                "phone": "(949) 723-4462",
                                "n": {
                                    "percentage": 100
                                },
                                "a": {
                                    "percentage": 100
                                },
                                "p": {
                                    "percentage": 100
                                }
                            },
                            "score": 100
                        },
                        "fulfillment": false
                    },
                    {
                        "link": "https://www.chamberofcommerce.com/newport-beach-ca/32128621-ginas-pizza",
                        "methods": {
                            "url": "https://www.chamberofcommerce.com/search/results?what=gina%27s+pizza&where=newport+beach%2C+ca",
                            "enclosure": "main-content",
                            "enctype": "class"
                        },
                        "title": "Ginas Pizza Inc",
                        "tech": "false",
                        "nap": {
                            "nap": {
                                "name": "Ginas Pizza Inc",
                                "address": "309 Palm St -  Newport Beach, California 92661",
                                "phone": "(949) 673-8516",
                                "n": {
                                    "percentage": 100
                                },
                                "a": {
                                    "percentage": 77
                                },
                                "p": {
                                    "percentage": 60
                                }
                            },
                            "score": 79
                        },
                        "fulfillment": false
                    },
                    {
                        "link": "https://www.chamberofcommerce.com/newport-beach-ca/44339193-ginas-pizza-newport",
                        "methods": {
                            "url": "https://www.chamberofcommerce.com/search/results?what=gina%27s+pizza&where=newport+beach%2C+ca",
                            "enclosure": "main-content",
                            "enctype": "class"
                        },
                        "title": "Ginas Pizza Newport",
                        "tech": "false",
                        "nap": {
                            "nap": {
                                "name": "Ginas Pizza Newport",
                                "address": "4507 W Coast Hwy -  Newport Beach, California 92663",
                                "phone": "(949) 722-1236",
                                "n": {
                                    "percentage": 74
                                },
                                "a": {
                                    "percentage": 80
                                },
                                "p": {
                                    "percentage": 70
                                }
                            },
                            "score": 75
                        },
                        "fulfillment": false
                    },
                    {
                        "link": "https://www.chamberofcommerce.com/newport-beach-ca/34418872-ginas-pizza-inc",
                        "methods": {
                            "url": "https://www.chamberofcommerce.com/search/results?what=gina%27s+pizza&where=newport+beach%2C+ca",
                            "enclosure": "main-content",
                            "enctype": "class"
                        },
                        "title": "Gina's Pizza Inc",
                        "tech": "false",
                        "nap": {
                            "nap": {
                                "name": "Gina's Pizza Inc",
                                "address": "Po Box 11269 -  Newport Beach, California 92658",
                                "phone": "(949) 760-0848",
                                "n": {
                                    "percentage": 100
                                },
                                "a": {
                                    "percentage": 68
                                },
                                "p": {
                                    "percentage": 50
                                }
                            },
                            "score": 73
                        },
                        "fulfillment": false
                    }
                ]
            },
            "results": "true",
            "errors": "false",
            "score": 100,
            "id": 52444619,
            "batch": "320192620171213",
            "createdAt": "2017-12-13T22:07:55.000Z",
            "directory": "chamberofcommerce",
            "elapsedTime": 1148
        },
        {
            "client": 12345,
            "partner": 7,
            "data": {
                "dirName": "2findlocal",
                "dirHandle": "2findlocal",
                "dirQuery": "http://www.2findlocal.com/search?k=gina+pizza&w=newport+beach%2C+ca",
                "results": 0
            },
            "results": "false",
            "errors": "false",
            "score": 0,
            "id": 52444620,
            "batch": "320192620171213",
            "createdAt": "2017-12-13T22:07:56.000Z",
            "directory": "2findlocal",
            "elapsedTime": 1606
        },
        {
            "client": 12345,
            "partner": 7,
            "data": {
                "dirName": "Angieslist",
                "dirHandle": "angieslist",
                "dirQuery": "https://www.google.com/search?q=site%3Aangieslist.com%2Fcompanylist%2F+Gina%27s+Pizza+Newport+Beach%2C+CA&ie=utf-8&hl=en&as_qdr=all&aq=t&rls=org:mozilla:us:official&client=firefox&num=2&filter=1&nojs=1",
                "results": 0
            },
            "results": "false",
            "errors": "false",
            "score": 0,
            "id": 52444621,
            "batch": "320192620171213",
            "createdAt": "2017-12-13T22:07:56.000Z",
            "directory": "angieslist",
            "elapsedTime": 2089
        },
        {...},
        {...}
    ],
    "total": 39
}

Local Data Report

API Endpoint

http://p.lssdev.com/legacylocaldata?client={client_id}

Example Request

GET /legacylocaldata?client=12345 HTTP/1.1
Host: p.lssdev.com
x-api-token: pk_3d5e01ef4ef113a158bcce657af6f1cd
Content-Type: application/json

Example Response

{
    "status": 200,
    "success": true,
    "error": null,
    "data": [
        {
            "client": 12345,
            "partner": 7,
            "link": "http://www.yelp.com/biz/ginas-pizza-newport-beach-2?osq=Gina%27s+Pizza",
            "claimed": "null",
            "hours": "true",
            "description": "null",
            "categories": 3,
            "photos": 0,
            "website": "http://ginaspizza.com",
            "n": "Gina?s Pizza",
            "a": "3142 W Balboa Blvd Newport Beach, CA 92663",
            "p": "(949) 723-4462",
            "id": 6945921,
            "createdAt": "2017-12-13T22:08:39.000Z",
            "directory": "yelp",
            "batch": "3201926-2017-12-13 22:08:39",
            "nScore": 100,
            "aScore": 100,
            "pScore": 100,
            "napScore": 100,
            "data": {
                "n": "Gina?s Pizza",
                "link": "http://www.yelp.com/biz/ginas-pizza-newport-beach-2?osq=Gina%27s+Pizza",
                "a": "3142 W Balboa Blvd Newport Beach, CA 92663",
                "p": "(949) 723-4462",
                "local": {
                    "website": "ginaspizza.com",
                    "categories": [
                        "pizza",
                        "italian",
                        "sandwiches"
                    ],
                    "opening_hours": [
                        {
                            "day": "Mon",
                            "open": "11:00 am",
                            "close": "9:30 pm"
                        },
                        {
                            "day": "Tue",
                            "open": "11:00 am",
                            "close": "9:30 pm"
                        },
                        {
                            "day": "Wed",
                            "open": "11:00 am",
                            "close": "9:30 pm"
                        },
                        {
                            "day": "Thu",
                            "open": "11:00 am",
                            "close": "9:30 pm"
                        },
                        {
                            "day": "Fri",
                            "open": "11:00 am",
                            "close": "10:30 pm"
                        },
                        {
                            "day": "Sat",
                            "open": "11:00 am",
                            "close": "10:30 pm"
                        },
                        {
                            "day": "Sun",
                            "open": "11:00 am",
                            "close": "9:30 pm"
                        }
                    ],
                    "rating": "3.0",
                    "reviews": 194
                },
                "reputation": {
                    "rating": "3.0",
                    "reviews": 194,
                    "contents": [
                        {
                            "author": "Nijole T.",
                            "avatar": "",
                            "rated": "4.0",
                            "review": "Delicious pizza at Gina's!\nWe all enjoyed the crust and ample toppings, everything is always fresh an made to order.\nAn XL fed our family of 4 with plenty of leftovers, making it a great deal for just under $30.\nService is nice, pizzas ready in about 15 minutes.\nGreat place for a casual lunch or dinner.",
                            "date": "2017-07-25 00:00:00"
                        },
                        {
                            "author": "Michael F.",
                            "avatar": "",
                            "rated": "2.0",
                            "review": "Had small pizza, kids pizza, bruschetta and tomato canters salad. NOT WORTH $50!!!\n\nPizza was just ok. Salad was all spring mix. All food Not much flavor and over priced. \n\nDisappointed",
                            "date": "2017-10-26 00:00:00"
                        },
                        {
                            "author": "Rick L.",
                            "avatar": "",
                            "rated": "1.0",
                            "review": "KITCHEN STAFF NOT WASHING HANDS!\n\nThis posting a little late but needed to be done. We stopped in for lunch on the weekend and had the lunch penne with meat sauce, side pasta salad, and a slice of the house special pizza. \n\nWhile the service was very good and the food was ok, Rasta Pasta was good, the pizza was a little thick for me and the toppings didn't seem nice and cooked and secured to the pie. Not bad just not for me. When I took a bite the entire cheese and everything wanted to come off at once. BUT...my issue is\n\nAfter lunch, I went to the restroom before leaving. As I walked in there was a cook from the kitchen using the facilities. I hear the toilet flush ten out the cook comes and right out the bathroom door! He did not wash his hands!\n\nDISGUSTING!!\n\nI called and talked to the owner who was apologetic and friendly but then joked about the \"Seinfeld\" episode where Jerry was in the restroom and the owner / chef didn't wash his hands. While it was funny, I didn't appreciate this as my food was made on hnis kitchen! \n\nWe won't be back.",
                            "date": "2017-10-08 00:00:00"
                        },
                        {
                            "author": "Charles O.",
                            "avatar": "",
                            "rated": "1.0",
                            "review": "This is the kind of pizza place that will sprinkle some Parmesan cheese on chicken and called it a chicken Parmesan. Absolutely lazy. \n\nThe chicken was dry and over cooked and came with no sauce or melted cheese or anything. I've never been \" tricked\" by a menu before and I cannot understand why a restaurant would carry a dish that would disappoint anyone who's ever tried a chicken Parmesan. Not only just poor quality food, but also so awfully prepared and so far off the expectation that I would re download my yelp app purely to say something. I've only left two reviews in my life. This is the only bad one. I don't complain unless it's necessary. I don't like to exaggerate, I have included a picture of what was delivered. Please look at what came.",
                            "date": "2017-08-12 00:00:00"
                        },
                        {
                            "author": "S. Alicia S.",
                            "avatar": "",
                            "rated": "5.0",
                            "review": "Tasty Italian food served up fast food style and everything made to order. The Sicilian chicken salads were a good size for lunch. We ate them with creamy cilantro and creamy balsamic dressings, which actually made the salads amazingly good. Friendly establishment.",
                            "date": "2017-10-14 00:00:00"
                        },
                        {
                            "author": "Juanee B.",
                            "avatar": "",
                            "rated": "5.0",
                            "review": "We have eaten here three times already and they are very very great pizza!! They are all so kind and nice,\nNoah is very nice to my husband and I....",
                            "date": "2017-09-22 00:00:00"
                        },
                        {
                            "author": "Jon B.",
                            "avatar": "",
                            "rated": "5.0",
                            "review": "Had a slice of Pepperoni pizza and was very pleased with the flavor.  Crust was just the right thickness and a good combination of soft and crunchy. A nice amount of cheese, which I like and some quality spices were involved.  \nNice atmosphere as well.  Highly recommend!",
                            "date": "2017-09-06 00:00:00"
                        },
                        {
                            "author": "Paul A.",
                            "avatar": "",
                            "rated": "5.0",
                            "review": "Ginas is such a wonderful place to return to. Having grown up in Costa Mesa going to Ginas on pch and superior/ hospital road, I love Ginas.\nToday the nice guys down on 32nd saved my starving family after we waited at another local place for an hour, before I had to force them to confirm that they weren't actually making our food....\nGina's was great, giant slices for everybody and tasty amber.",
                            "date": "2017-03-05 00:00:00"
                        },
                        {
                            "author": "Erinn W.",
                            "avatar": "",
                            "rated": "3.0",
                            "review": "The pizza is fine.  But the service is crap and you can partially blame Yelp for it.  They told myself, as well, as 2 other customers to go over way to early to pick up the pizzas.  We all had to wait 15-20 minutes...\n\nTell us the correct time to come over and pick up, if it is going to be 7:30, then tell us 7:30; not 7:10!!!  All you are doing is making the customer fume, and we get mad at the restaurant, and then the managers are frustrated.\n\nHow do you like it, Yelp?  A negative comment on you...",
                            "date": "2017-07-22 00:00:00"
                        },
                        {
                            "author": "Amber L.",
                            "avatar": "",
                            "rated": "5.0",
                            "review": "Great pizza every time. A must stop when in the area. Thanks Glen for the awesome service!",
                            "date": "2017-10-12 00:00:00"
                        },
                        {
                            "author": "Jimmy D.",
                            "avatar": "",
                            "rated": "2.0",
                            "review": "This is ok for pizza on the go they have slices over 3 dollar's its small place there pizza ok but I had better there's lots of parking spaces its in small shopping center they have beer and wine t.v. and restrooms its Saturday night the place is dirty  the floor and restrooms is dirty too its good locations.",
                            "date": "2017-08-05 00:00:00"
                        },
                        {
                            "author": "Brian O.",
                            "avatar": "",
                            "rated": "5.0",
                            "review": "Crust is the key to great pizza in my opinion. Atmosphere was great! The people helping were very informative and kind. Will definitely come back because the crust was the perfect amount of crisp and flavor. Jalapeños weren't too hot and pepperoni was on point. Wow!",
                            "date": "2017-06-15 00:00:00"
                        },
                        {
                            "author": "Tim W.",
                            "avatar": "",
                            "rated": "2.0",
                            "review": "CHECK YOUR RECEIPT!  They like to overcharge people here!\nI came back again after receiving a $10 gift certificate from the manager.\nOvercharged again!!  I ordered the Happy Hour Big Slice and Beer for $8.99...... it's on the sign out front and the sign inside the restaurant.\nI was overcharged $9.48.  yeah, it's only 50 cents but so damn annoying!!\nThat is two for two.\n\nThe food is decent. Not the best, not the worst.  Service was better this time.... used my yelp check in offer and $10 gift certificate.  Later looked at the receipt and laughed out loud to see they over charged me again.\n\nYou got me twice now. \nProbably wont be a third time.",
                            "date": "2016-11-21 00:00:00"
                        },
                        {
                            "author": "Karen I.",
                            "avatar": "",
                            "rated": "5.0",
                            "review": "Love this pizza.   Only pizza  I will eat Absolutely delicious we always get the veggie thin crust and it is yummy.  Fresh veggies, very clean restaurant and super nice staff.    Perfect for takeout and dine in.    Best pizza in Newport",
                            "date": "2017-09-23 00:00:00"
                        },
                        {
                            "author": "Sharon H.",
                            "avatar": "",
                            "rated": "5.0",
                            "review": "Great Food and awesome people who work there.   they bring your food to the beach.  And supply everything.  The pizza is very good.",
                            "date": "2017-09-08 00:00:00"
                        },
                        {
                            "author": "Joe C.",
                            "avatar": "",
                            "rated": "5.0",
                            "review": "Great customer service.   The waiter was amazing, on top of everything.   I'll be back again soon, food my excellent too",
                            "date": "2017-09-03 00:00:00"
                        },
                        {
                            "author": "julie m.",
                            "avatar": "",
                            "rated": "5.0",
                            "review": "We love Gina's pizza. The salad is always fresh, garlic bread, or Hawaiian pizza.  Friendly and helpful staff. Clean and fresh looking atmosphere, either inside or on the patio.",
                            "date": "2017-08-14 00:00:00"
                        },
                        {
                            "author": "Ulysses U.",
                            "avatar": "",
                            "rated": "2.0",
                            "review": "This place is FILTHY!  When I came in, a weird smell welcomed me.  The floor was sticky so was the surface.  I decided to eat at the patio, and flies were all over  because the tables and floor were also dirty.  I question their food handling here.  I hope I won't get sick!",
                            "date": "2017-08-06 00:00:00"
                        },
                        {
                            "author": "Gary P.",
                            "avatar": "",
                            "rated": "5.0",
                            "review": "Ordered a pizza from yelp and had it delivered to my fiancé's job.  Requested that the toppings arranged in a heart shape and Gina's Pizza totally accommodated.  Oh and the pizza was great to boot.  Definitely will be back.",
                            "date": "2017-02-14 00:00:00"
                        },
                        {
                            "author": "Cindie N.",
                            "avatar": "",
                            "rated": "3.0",
                            "review": "Good Pizza and ginormous! Kinda far from where I live, but I was willing to give it a try..\n\nWe dine in, but I had order a lasagna to go and I had a half ass lasagna.....not happy...pic below..\n\nStaff was friendly.",
                            "date": "2016-09-18 00:00:00"
                        }
                    ]
                }
            }
        },
        {
            "client": 12345,
            "partner": 7,
            "link": "https://www.google.com/maps?cid=15412785221185897851",
            "claimed": "true",
            "hours": "true",
            "description": "null",
            "categories": 7,
            "photos": 1,
            "website": "http://www.ginaspizza.com/",
            "n": "Gina's Pizza",
            "a": "3142 W Balboa Blvd, Newport Beach, CA 92663",
            "p": "(949) 723-4462",
            "id": 6945922,
            "createdAt": "2017-12-13T22:08:39.000Z",
            "directory": "google",
            "batch": "3201926-2017-12-13 22:08:39",
            "nScore": 100,
            "aScore": 100,
            "pScore": 100,
            "napScore": 100,
            "data": {
                "cid": "15412785221185897851",
                "description": "",
                "name": "Gina's Pizza",
                "place_url": "https://www.google.com/maps?cid=15412785221185897851",
                "categories": [
                    "pizza restaurant",
                    "deliveries",
                    "fast food container",
                    "italian restaurant",
                    "pizza delivery",
                    "pizza",
                    "western food"
                ],
                "gcid": [
                    "gcid:pizza_restaurant",
                    "gcid:italian_restaurant",
                    "gcid:pizza_delivery_service"
                ],
                "keywords": [
                    "deliveries",
                    "fast food container",
                    "pizza",
                    "western food"
                ],
                "photos": 0,
                "claimed": "yes",
                "reviews": 84,
                "rating": "4.4",
                "address": "3142 W Balboa Blvd, Newport Beach, CA 92663",
                "area_code": "949",
                "business_phone": "(949) 723-4462",
                "website": {
                    "link": "http://www.ginaspizza.com/",
                    "domain": "ginaspizza.com"
                },
                "opening_hours": {
                    "1": {
                        "day": "Monday",
                        "hours": "11AM–10PM"
                    },
                    "2": {
                        "day": "Tuesday",
                        "hours": "11AM–10PM"
                    },
                    "3": {
                        "day": "Wednesday",
                        "hours": "11AM–10PM"
                    },
                    "4": {
                        "day": "Thursday",
                        "hours": "11AM–10PM"
                    },
                    "5": {
                        "day": "Friday",
                        "hours": "11AM–11PM"
                    },
                    "6": {
                        "day": "Saturday",
                        "hours": "11AM–11PM"
                    },
                    "7": {
                        "day": "Sunday",
                        "hours": "11AM–10PM"
                    }
                },
                "place_id": null,
                "is_places": "no",
                "nap": {
                    "n": 100,
                    "a": 100,
                    "p": 100,
                    "t": 100
                }
            }
        },
        {
            "client": 12345,
            "partner": 7,
            "link": "",
            "claimed": "",
            "hours": "false",
            "description": "null",
            "categories": 0,
            "photos": 0,
            "website": "",
            "n": "",
            "a": "",
            "p": "",
            "id": 6945923,
            "createdAt": "2017-12-13T22:08:39.000Z",
            "directory": "yahoo",
            "batch": "3201926-2017-12-13 22:08:39",
            "nScore": 0,
            "aScore": 0,
            "pScore": 0,
            "napScore": 0,
            "data": null
        },
        {
            "client": 12345,
            "partner": 7,
            "link": "http://www.bing.com/local?lid=YN873x105183062",
            "claimed": "null",
            "hours": "null",
            "description": "null",
            "categories": 0,
            "photos": 6,
            "website": "http://ginaspizza.com/",
            "n": "Gina's Pizza",
            "a": "3142 W Balboa Blvd, Newport Beach, CA 92663",
            "p": "(949) 723-4462",
            "id": 6945924,
            "createdAt": "2017-12-13T22:08:39.000Z",
            "directory": "bing",
            "batch": "3201926-2017-12-13 22:08:39",
            "nScore": 100,
            "aScore": 100,
            "pScore": 100,
            "napScore": 100,
            "data": {
                "data": {
                    "present": 1,
                    "photos": 6,
                    "website": "http://ginaspizza.com/",
                    "reviews": 0,
                    "bingpage": "http://www.bing.com/local?lid=YN873x105183062",
                    "napscore": {
                        "nap": {
                            "n": 100,
                            "a": 100,
                            "p": 100
                        },
                        "score": 100
                    },
                    "score": 100
                },
                "nap": [
                    "Gina's Pizza",
                    "3142 W Balboa Blvd, Newport Beach, CA 92663",
                    "(949) 723-4462",
                    "(949) 723-4462",
                    "(949) 723-4462",
                    "http://www.bing.com/local?lid=YN873x105183062"
                ]
            }
        }
    ],
    "total": 4
}