Skip to content

Commit

Permalink
Adding GetResponse Provider
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaitanya Surapaneni committed Dec 13, 2018
1 parent 8347402 commit be2fa12
Show file tree
Hide file tree
Showing 6 changed files with 91 additions and 0 deletions.
47 changes: 47 additions & 0 deletions providers/getresponse/conf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"name": "GetResponse",
"desc": "GetResponse offers a complete suite of simple-yet-powerful solutions, scaled and customized for small and large companies for email marketing and online campaign management.",
"url": "https://api.getresponse.com/v3",
"oauth2": {
"authorize": {
"url": "https://app.getresponse.com/oauth2_authorize.html",
"query": {
"response_type": "code",
"client_id": "{client_id}",
"state": "{{state}}"
}
},
"access_token": {
"url": "/token",
"headers": {
"Authorization": "Basic !BASE64{client_id}:{client_secret}!BASE64"
},
"query": {
"grant_type": "authorization_code",
"code": "{{code}}"
}
},
"request": {
"url": "https://api.getresponse.com/v3",
"headers": {
"Authorization": "Bearer {{token}}"
}
},
"refresh": {
"url": "/token",
"headers": {
"Authorization": "Basic !BASE64{client_id}:{client_secret}!BASE64"
},
"query": {
"grant_type": "refresh_token",
"refresh_token": "{{refresh_token}}"
}
}
},
"href": {
"keys": "https://app.getresponse.com/manage_api.html?",
"docs": "https://apidocs.getresponse.com/v3",
"apps": "https://app.getresponse.com/manage_api.html",
"provider": "https://www.getresponse.com/"
}
}
Binary file added providers/getresponse/config.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added providers/getresponse/keys.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added providers/getresponse/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions providers/getresponse/me.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
var me = {
url: "/accounts",
params: {},
fields: {
accountId: function (me) {
return me.accountId
},
firstName: function (me) {
return me.firstName
},
lastName: function (me) {
return me.lastName
},
email: function (me) {
return me.email
},
href: function (me) {
return me.href
}
}
};
module.exports = me;
22 changes: 22 additions & 0 deletions providers/getresponse/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"settings": {
"createApp": {
"url": "https://app.getresponse.com/manage_api.html",
"image": "config.png"
},
"copyingKey": {
"url": "https://app.getresponse.com/manage_api.html",
"image": "keys.png"
},
"install": {
"href": {
"provider": "https://www.getresponse.com/",
"docs": "https://apidocs.getresponse.com/v3/"
}
},
"sample": {
"method": "get",
"url": "/accounts"
}
}
}

0 comments on commit be2fa12

Please sign in to comment.