{"id":18271678,"url":"https://github.com/Gurpartap/GSTwitPicEngine","last_synced_at":"2025-04-05T02:30:37.912Z","repository":{"id":959369,"uuid":"746247","full_name":"Gurpartap/GSTwitPicEngine","owner":"Gurpartap","description":"Objective C wrapper around TwitPic's OAuth and OAuth Echo API with OAuthConsumer Lib. Deprecated.","archived":false,"fork":false,"pushed_at":"2010-06-29T08:20:46.000Z","size":102,"stargazers_count":56,"open_issues_count":1,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-05T11:54:07.571Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"mperham/sidekiq","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Gurpartap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-06-29T06:52:01.000Z","updated_at":"2024-02-05T21:15:11.000Z","dependencies_parsed_at":"2022-08-16T11:35:25.071Z","dependency_job_id":null,"html_url":"https://github.com/Gurpartap/GSTwitPicEngine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gurpartap%2FGSTwitPicEngine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gurpartap%2FGSTwitPicEngine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gurpartap%2FGSTwitPicEngine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gurpartap%2FGSTwitPicEngine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gurpartap","download_url":"https://codeload.github.com/Gurpartap/GSTwitPicEngine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247279234,"owners_count":20912849,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T11:39:26.996Z","updated_at":"2025-04-05T02:30:37.588Z","avatar_url":"https://github.com/Gurpartap.png","language":"Objective-C","readme":"\nGSTwitPicEngine\n===============\n\nGSTwitPicEngine provides easy to implement wrapper around the TwitPic.com's OAuth (v1) and OAuth Echo (v2) API for iPhone application projects.\n\nRequirements\n------------\n\n * **ASIHTTPRequest** - http://allseeing-i.com/ASIHTTPRequest/\n * **OAuthConsumer** - http://github.com/jdg/oauthconsumer\n * **OARequestHeader** - http://github.com/Gurpartap/OARequestHeader\n * One of these **JSON parsers**:\n   - yajl \u0026 yajl-objc (enabled by default) - http://github.com/gabriel/yajl-objc\n   - TouchJSON\n   - SBJSON\n * MGTwitterEngine or anything of your choice that supplies the **OAToken instance** (from OAuthConsumer).\n\nUsage\n-----\n\n * Set kTwitterOAuthConsumerKey, kTwitterOAuthConsumerSecret and kTwitPicAPIKey constants to their respective values before GSTwitPicEngine.h is imported.\n * See GSTwitPicEngine.h to configure TwitPic API Format (XML or JSON) and to set which JSON Parser to use.\n * Add header file:\n\n        #import \"GSTwitPicEngine.h\" \n * Setup retained (@synthesize) instance var/property in the header:\n\n        GSTwitPicEngine *twitpicEngine;\n * Implement **GSTwitPicEngineDelegate** protocol for the class.\n * Initialize the engine with class or as needed:\n\n        self.twitpicEngine = (GSTwitPicEngine *)[GSTwitPicEngine twitpicEngineWithDelegate:self];\n * Find the authorization token and supply to twitpicEngine with:\n\n        [twitpicEngine setAccessToken:token];\n * Then to upload image and attach a text message along with it (does not post to twitter):\n\n        [twitpicEngine uploadPicture:[UIImage imageNamed:@\"mypic.png\"]  withMessage:@\"Hello world!\"]; // This message is supplied back in success delegate call in request's userInfo.\n * To upload image only:\n\n        [twitpicEngine uploadPicture:uploadImageView.image];\n* Upon end of request, one of the delegate methods is called with appropriate data and information.\n\nGSTwitPicEngineDelegate\n-----------------------\n\n * GSTwitPicEngineDelegate protocol specifies two delegate methods:\n\n\u003cpre\u003e- (void)twitpicDidFinishUpload:(NSDictionary *)response {\n  NSLog(@\"TwitPic finished uploading: %@\", response);\n\n  // [response objectForKey:@\"parsedResponse\"] gives an NSDictionary of the response one of the parsing libraries was available.\n  // Otherwise, use [[response objectForKey:@\"request\"] objectForKey:@\"responseString\"] to parse yourself.\n\n  if ([[[response objectForKey:@\"request\"] userInfo] objectForKey:@\"message\"] \u003e 0 \u0026\u0026 [[response objectForKey:@\"parsedResponse\"] count] \u003e 0) {\n    // Uncomment to update status upon successful upload, using MGTwitterEngine's instance.\n    // [twitterEngine sendUpdate:[NSString stringWithFormat:@\"%@ %@\", [[[response objectForKey:@\"request\"] userInfo] objectForKey:@\"message\"], [[response objectForKey:@\"parsedResponse\"] objectForKey:@\"url\"]]];\n  }\n}\u003c/pre\u003e\n\n\u003cpre\u003e- (void)twitpicDidFailUpload:(NSDictionary *)error {\n  NSLog(@\"TwitPic failed to upload: %@\", error);\n  \n  if ([[error objectForKey:@\"request\"] responseStatusCode] == 401) {\n    // UIAlertViewQuick(@\"Authentication failed\", [error objectForKey:@\"errorDescription\"], @\"OK\");\n  }\n}\n\u003c/pre\u003e\n\nContact\n-------\n\nFind me on Twitter: http://twitter.com/Gurpartap\nOr use the form at http://gurpartap.com/contact to talk privately (ooooh!!).\n\nLicense\n-------\n\nCopyright (c) 2010 Gurpartap Singh, http://gurpartap.com/\n\nThis code is licensed under the MIT License\n\nYou are free:\n\n * to Share — to copy, distribute and transmit the work\n * to Remix — to adapt the work\n\nUnder the following conditions:\n\n * The copyright notice and license shall be included in all copies or substantial portions of the software.\n * Any of the above conditions can be waived if you get permission from the copyright holder.\n\nSee bundled MIT-LICENSE.txt file for detailed license terms.\n","funding_links":[],"categories":["etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGurpartap%2FGSTwitPicEngine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGurpartap%2FGSTwitPicEngine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGurpartap%2FGSTwitPicEngine/lists"}