Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pyro2927/tweeter
Twitter Framework for the iPhone (or really any Obj-C project)
https://github.com/pyro2927/tweeter
Last synced: about 17 hours ago
JSON representation
Twitter Framework for the iPhone (or really any Obj-C project)
- Host: GitHub
- URL: https://github.com/pyro2927/tweeter
- Owner: pyro2927
- Created: 2009-10-06T02:55:25.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2009-12-16T14:57:49.000Z (almost 15 years ago)
- Last Synced: 2024-11-05T11:54:19.404Z (15 days ago)
- Language: Objective-C
- Homepage:
- Size: 186 KB
- Stars: 16
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
___________ __
\__ ___/_ _ __ ____ _____/ |_ ___________
| | \ \/ \/ // __ \_/ __ \ __\/ __ \_ __ \
| | \ /\ ___/\ ___/| | \ ___/| | \/
|____| \/\_/ \___ >\___ >__| \___ >__|
\/ \/ \/The goal of Tweeter is to provide an easy to use framework for the Twitter API in Objective-C (specifically for the iPhone). While it is still young, I hope other developers can use it for their needs.
If you would like to request features, or have a bug to report, please email [email protected].
11/11/09
* As of right now Tweeter provides basic authentication, pulling current Trends, public timeline, friends timeline, a user's picture, and a basic search.= Index =
1) Setup
2) Working functionality
2.1) Class methods
2.2) Instance Methods***********************
1) Setup
***********************
If you are creating a new Xcode iPhone project from scratch, you must import the files in CCJSON, ASI, scifi, and Tweeter. You must also add the following frameworks:
* Security.framework
* CFNetwork.framework
* SystemConfiguration.framework
* libz.1.2.3.dylibAfter that make sure to #import "Tweeter.h" in one of your project files and you are ready to go!
***********************
2) Working Functionality
***********************
The method calls are split into class methods and instance methods. I split them on whether or not the Twitter API action requires authentication or not. The instance methods can store the authentication and use it for other method calls. Any method that does not require authentication is run as a class method.*NOTE: I am only listing methods that are complete. Others may be included in the source that are not working 100%
2.1) Class methods
***********************
The following methods can be called as class methods:
+(NSArray *)getTweets:(NSURL *)url;
+(NSArray *)getUserTimeline:(NSString *)profID;
+(NSArray *)getPublicTimeline;
+(NSArray *)search:(NSString *)query;
+(NSArray *)getTrends;3.1) Instance methods
***********************
The following methods can be called as class methods:
-(void)loginWithUsername:(NSString *)username password:(NSString *)password;
-(void)logout;
-(void)post:(NSString *)tweet;
-(UIImage *)getMyPic;
-(NSArray *)getFriendsTimeline;*NOTE: Make sure to loginWithUsername: password: before calling any of the other methods. It is not required to logout: when finished (authentication will time out eventually), but it is good practice to do so.