Skip to content

Instantly share code, notes, and snippets.

@besquared
Created August 28, 2008 23:09
Show Gist options
  • Select an option

  • Save besquared/7854 to your computer and use it in GitHub Desktop.

Select an option

Save besquared/7854 to your computer and use it in GitHub Desktop.
## I the userInfo object
'get_field' : info.getField,
I alias the get_field object to get platform specific stuff.
## The people/person fields
if(typeof(MyOpenSpace) != "undefined") {
fields.push(
MyOpenSpace.Person.Field.CITY,
MyOpenSpace.Person.Field.REGION,
MyOpenSpace.Person.Field.POSTALCODE,
MyOpenSpace.Person.Field.COUNTRY,
MyOpenSpace.Person.Field.HOMETOWN,
MyOpenSpace.Person.Field.CULTURE,
MyOpenSpace.Person.Field.ONLINE_NOW
);
}
## Allow params and url's with query parameters to merge
} else { // GET request
if (encodedParams !== null) {
sep = (url.indexOf("?") > -1) ? '&' : '?'
url += sep + encodedParams; // Append to URL
}
optParams = { METHOD : 'GET', CONTENT_TYPE : contentType, AUTHORIZATION : network.authentication };
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment