Permalink
Browse files

api config and current as of whenever files for different api environ…

…ments.
  • Loading branch information...
1 parent 7ae0e46 commit e7c7cbdd8d3eabaad709db38a67d9e4f8ba5ec9d @jonnolen jonnolen committed Apr 26, 2012
Showing with 1,927 additions and 47 deletions.
  1. +647 −0 public/data/angieslist-dev.json
  2. +632 −0 public/data/angieslist-local.json
  3. +611 −0 public/data/angieslist.json
  4. +18 −47 public/data/apiconfig.json
  5. +19 −0 public/data/test.js
@@ -1,55 +1,26 @@
{
- "klout": {
- "name": "Klout API",
- "protocol": "http",
- "baseURL": "api.klout.com",
- "publicPath": "/1",
- "auth": "key",
- "keyParam": "key"
- },
- "fanfeedr": {
- "name": "FanFeedr Sports Basic API",
- "protocol": "http",
- "baseURL": "ffapi.fanfeedr.com",
+ "angieslist": {
+ "name": "Angie's List API",
+ "protocol": "https",
+ "baseURL": "qaapi.angieslist.com",
"publicPath": "",
"auth": "key",
- "keyParam": "api_key"
- },
- "usatoday": {
- "name": "USA TODAY Census API",
- "protocol": "http",
- "baseURL": "api.usatoday.com",
- "publicPath": "/open",
- "auth": "key",
- "keyParam": "api_key"
+ "keyParam": "authorizationtoken"
},
- "linkedin": {
- "name": "LinkedIn",
- "protocol": "http",
- "baseURL": "api.linkedin.com",
+ "angieslist-dev" : {
+ "name":"Angie's List devapi.angieslist.com",
+ "protocol":"https",
+ "baseURL":"devapi.angieslist.com",
"publicPath": "",
- "privatePath": "/v1",
- "auth": "oauth",
- "oauth": {
- "type": "three-legged",
- "requestURL": "https://api.linkedin.com/uas/oauth/requestToken",
- "signinURL": "https://api.linkedin.com/uas/oauth/authorize?oauth_token=",
- "accessURL": "https://api.linkedin.com/uas/oauth/accessToken",
- "version": "1.0",
- "crypt": "HMAC-SHA1"
- },
- "keyParam":""
+ "auth": "key",
+ "keyParam": "authorizationtoken"
},
- "simplegeo": {
- "name": "SimpleGeo",
- "protocol": "http",
- "baseURL": "api.simplegeo.com",
- "publicPath": "",
- "auth": "oauth",
- "oauth": {
- "type": "two-legged",
- "version": "1.0",
- "crypt": "HMAC-SHA1"
- }
+ "angieslist-local" : {
+ "name":"Angie's List dev.angieslist.com/webapi",
+ "protocol":"https",
+ "baseURL":"dev.angieslist.com",
+ "publicPath": "/webapi",
+ "auth": "key",
+ "keyParam": "authorizationtoken"
}
}
View
@@ -0,0 +1,19 @@
+var https = require('https');
+
+var options = {
+ "host" : 'devapi.angieslist.com',
+ "method": 'GET',
+ "path": "/"};
+
+var req = https.request(options, function(response){
+ response.setEncoding('utf-8');
+ console.log('HEADERS:');
+ console.log(response.headers);
+ console.log(response.statusCode);
+
+ response.on('data', function(d){
+ process.stdout.write(d);
+ });
+}).on('error', function(e){
+ console.log(e);
+}).end();

0 comments on commit e7c7cbd

Please sign in to comment.