Created
August 28, 2008 23:09
-
-
Save besquared/7854 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## 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