Start-up development of a Weibo client on the iphone. Although there are already many very good clients, I still want to repeat the wheel. The main purpose is to train my hands, this project has more meanings. First of all, object-c is newly learned, iphone development is also new, and even Mac usage is new, I have been writing the first hello world for some time, but there are inevitably many shortcomings in a real project, but I still want to write the development process as a breeze.
My development environment: Mac OS X 10.6.6 + Xcode 3.2.5
First of all, I completed an sdk for a super-small Sina Weibo client and did not directly use the sdk provided by Sina, mainly for the purpose of learning, truly understanding the implementation principles, we recommend that you implement your own sdk by yourself. I open-source the code that I implemented. For some implementations, refer to TwitterFon. Address:Http://code.google.com/p/minblog4sina/
The Weibo client I developed is based on the class libraries and methods provided by this self-implemented sdk.
Introduction to minblog4sina is as follows:
The iphone client sdk 1.0 based on Sina Weibo is a micro-sdk implementation. It is very easy to use and easy to scale with OAuth authentication.
For detailed usage, refer to the methods in TestViewController of the project.
Features of the current version:
Obtain the downlink dataset (timeline) Interface
Statuses/public_timeline get the latest public Weibo message
Statuses/friends_timeline get the latest Weibo messages of the currently logged-on user and the users they follow
Statuses/user_timeline
Statuses/mentions get @ current user's Weibo list
Statuses/comments_timeline get the list of comments sent and received by the current user
Statuses/comments_by_me get comments from the current user
Statuses/comments_to_me get comments received by the current user
Statuses/comments: return the comment list of a Weibo message based on the Weibo Message ID.
Statuses/counts
Statuses/repost_timeline returns the newest n Weibo messages forwarded by an original microblog. New!
Statuses/repost_by_me returns the latest n Weibo messages forwarded by the user. New!
Statuses/unread to get the number of unread messages of the current user
Statuses/reset_count interface for clearing unread messages
Emotions
Weibo access interface
Statuses/show get the content of a single microblog by ID
User/statuses/id jump to a single Weibo page based on Weibo ID and user id
Statuses/update publishes a microblog message Updated!
Statuses/upload images and publish a Weibo message
Statuses/destroy delete a Weibo message
Statuses/repost forward a microblog message Updated!
Statuses/comment comments on a Weibo message Updated!
Statuses/comment_destroy/: id: deletes the Weibo comments of the current user.
Statuses/comment/destroy_batch batch Delete Weibo comments of the current user
Statuses/reply Weibo comment Updated!
User Interface
Users/show obtain user information based on user ID (authorized user)
Statuses/friends get the user follow list and the latest Weibo record for each user
Statuses/followers Get the user's fan list and the latest Weibo record for each fan user
Users/hot
User/friends/update_remark updates the remarks of a friend of interest to the current logon user. New!
Users/suggestions returns the user Beta that the current user may be interested in!
Follow Interface
Follow a user by friendships/create
Friendships/destroy cancel follow
Whether friendships/exists follows a user (friendships/show is recommended)
Friendships/show get the details of the two user relationships