Skip to content

Instantly share code, notes, and snippets.

@chadhutchins
Created January 6, 2017 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chadhutchins/3e9540dd81de9d59485f852117e9a611 to your computer and use it in GitHub Desktop.
Save chadhutchins/3e9540dd81de9d59485f852117e9a611 to your computer and use it in GitHub Desktop.
client = ZAFClient.init();
var settings = {
url: '{{setting.sugarUrl}}',
headers: {'oauth-token': '{{setting.sugarOauthAccessToken}}'},
secure: true,
type: 'GET',
dataType: 'json',
contentType: 'application/json',
};
client.request(settings).then(function(data){console.log(data);});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment