Created
January 5, 2009 01:17
-
-
Save joubertnel/43230 to your computer and use it in GitHub Desktop.
This file contains 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
+ (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