I don't really understand how this API is supposed to work, as I've never worked with JSON before.
The documentation doesn't give any examples, but it says it the end-points in this API support both POST and GET operations, returning JSON.
My question is, I'm not sure exactly how to implement this, let's say I just want to pull all the data into a simple page such as this:
City: Salem
Zip Code: 97302
etc...
I'm not quite sure where to start with this:
POST http://[your RepMan hostname]/api/v1/account/reputation/current.json
GET http://[your RepMan hostname]/api/v1/account/reputation/current.json
Following is a list of arguments for the POST body or GET query string. All values should be properly encoded as per a normal POST body or GET query string.
| Field | Ordinality | Datatype | Description
| pid | 1 | string | This is your partner ID as provided by us to access the API.
| apiKey | 1 | string | This is your API Key as provided by use to access the API.
| srid | ? | string | This is the unique RepMan ID for the account. Either this or customerId must be specified.
| customerId | ? | string | This is your unique customer id for the account. Either this or srid must be specified.
For a 200 response, you will receive the following JSON content:
{
account : {
srid : "DW5SRB36",
lastName : "Morimoto",
pid : "SRP",
customerId : null,
firstName : "Masaharu"
},
company : {
city : "New York",
postalZip : "10011",
provState : "NY",
name : "Morimoto",
address : "88 10th Ave"
},
visibility : {
found : 18,
missing : 9
},
reviews : {
1star : 5,
4star : 37,
3star : 44,
5star : 66,
2star : 5
},
competition : {
Restaurants in New York : {
Megu : 1.82,
Morimoto: 52.95,
Matsuri : 18.13,
Buddakan: 0.93,
Nobu : 26.17
}
},
social : {
checkins : 5015,
twitter_followers : 8154,
facebook_likes : 1134
},
mentions : {
07-09-2011 : {
positive : 0,
neutral : 0,
negative : 0
},
07-07-2011: {
positive : 2,
neutral : 3,
negative : 0
},
07-05-2011: {
positive : 1,
neutral : 2,
negative : 0
},
07-11-2011: {
positive : 2,
neutral : 2,
negative : 0
},
07-06-2011: {
positive : 5,
neutral : 2,
negative : 0
},
07-10-2011: {
positive : 3,
neutral : 4,
negative : 0
},
07-08-2011: {
positive : 1,
neutral : 5,
negative : 0
}
}
}
}