Skip to content

Instantly share code, notes, and snippets.

@joubertnel
Created January 5, 2009 01:17
Show Gist options
  • Save joubertnel/43230 to your computer and use it in GitHub Desktop.
Save joubertnel/43230 to your computer and use it in GitHub Desktop.
+ (id)getWorkspaceList:(CPString)url for:(CPString)email withSecurity:(CPString)token
{
CPLogConsole("getWorkspaceList executing");
serviceURL = url + "/GetWorkspaceList&securityToken=" + token
+ "&email=" + email;
jsonData = [CPURLConnection sendSynchronousRequest:[CPURLRequest requestWithURL:serviceURL]
returningResponse:nil
error:nil];
CPLogConsole("serviceURL=" + serviceURL);
CPLogConsole("jsonData=" + jsonData);
CPLogConsole("result = " + [jsonData description]);
result = CPJSObjectCreateWithJSON([jsonData description]);
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment