What's the best way to get latest tweets in iPhone(SDK, 3rd party libs, etc)? - iphone

I need to display a list of latest tweets in my iPhone app, and wondering what is the best way to do this, is there any SDK or existing projects doing this? I know about ShareKit, but it seems to be a method for sharing with standard UI, and no way to use it as a getter for latest tweets.
Thanks!

If you only need to get publicly available data, then Twitter has a pretty straight-forward HTTP API that outputs JSON.
For example, to get a user's tweets: http://dev.twitter.com/doc/get/statuses/public_timeline
You can easily use it by utilizing available library for JSON parsing (e.g. JSONKit) and HTTP client (e.g. ASIHTTPRequest, or NSData's + dataWithContentsOfURL).

U see the following example.you will get some idea
http://mobile.tutsplus.com/tutorials/iphone/twitter-api-iphone/

There is also a third way, which is using http://three20.info/, that also implements main Twitter methods, but since all that you want is to retrieve public info I would stick with ASIHTTPRequest, as Barum Rho recommended. Easier and quicker.
Just to let you know more ways :)

Related

How can I use my own api to other platforms?

I made a json api with using this => https://www.django-rest-framework.org/tutorial/quickstart/
All the articles I read teach the creation and use of api within its own platform, what I need is what I produce on the web, use it to in other platforms. I made my api but no idea about how to import it in other platforms..
so how can I use my own api in my c# windows form application or my flutter project
Any link, guide etc.
First of all you should be clear about why you need an api. If you need to transfer data from one system to another, pick a way that you know you can operate on both sides.
JSON or XML are just ways of representing data, first think about what you need and how can you transport that data between systems...After that the implementation should be clear.

How to write to a server/URL in iOS?

Basically, how can I store data in a URL that can be accessed by other devices?
This would be similar to how Instagram works, where people can see the pictures that others post, even though the files are not stored locally on the user's device.
This could also be a way to create high score leaderboards in a game without using GameCenter.
Thanks in advance.
NSURLRequest class is better to use to perform request by URL. So, if you have some RESTful backend by the URL that accept POST data you will be able to push binaries. You can find code iOS example for request similar to yours by following URL - Send image to server as binary data
For the server side I would suggest to take a look into node.js direction (http://nodejs.org)
You need some form of server support, like php, asp etc.
Have a look at HTTP POST and for iOS have a look at NSURLConnection Class Reference, or even better, AFNetworking.

Searching addresses with Google API

I am writing an iphone application when you give a search text, it locate possible addresses.
I was thinking there maybe some Google API for this. I have seen several applications with this feature.
Can anyone provide some information on this?
If you've found the API you want (looks like you have), the basic idea is to use NSURLRequest, NSURLConnection, and NSMutableData to construct a url (ie. http://maps.googleapis.com/maps/api/geocode/output?parameters) and load the resulting data into your application.
From there, I would make use of a JSON parsing lib to convert the result string into an NSDictionary, so that you can use it easily in your app. This one is my favorite: http://code.google.com/p/json-framework/
good luck!

iPhone programming: how to use URL's API (e.g. BLAST)

I am new to iPhone programming and would like to be able to use the BLAST (is a bioinformatics server) URL's API from the iPhone. I would like to write a very simple application that queries the BLAST server and make some query. I have found the following
I have found the following documentation on BLAST (http://www.ncbi.nlm.nih.gov/BLAST/Doc/urlapi.pdf).
I am not sure from where I should start.. I checked out the following on security concepts for Mac OS X and iOS(http://developer.apple.com/iphone/library/documentation/Security/Conceptual/Security_Overview/Concepts/Concepts.html) and then found CFNetwork library (http://developer.apple.com/iphone/library/documentation/Networking/Conceptual/CFNetwork/Introduction/Introduction.html).
But I don't really know from where to start..
theoretically I would like to query the BLAST url API from a .mm class method (so I can use standard C) and then show the results in a normal view.
Anyone would be able to guide me in these first steps?
Best regards and Many thanks!
The BLAST API is strange. It is a POST-only command-response API, but the commands you POST are things like CMD=Get&..., CMD=Put&..., etc.
The iPhone SDK provides a fairly convenient high level way to invoke URLs. Have a good read of the NSURLRequest documentation. You'll need to set the HTTPMethod property to POST, and populate the HTTPBody with whatever the BLAST API tells you to post.

If I want my iOS app to use a RESTful WebService that returns XML data, which APIs do I want to start learning?

I'd like to build in some weather functionality into my app and I'm going to be using the NOAA weather web service to retrieve the weather information. The NOAA website has a great deal of information on how the data should be requested and how the resulting data is structured. I'm new to iOS development, so I just need a little direction because I'm not sure which APIs I should be using to request and process this data. My questions are...
What's the proper way to request access to the user's location?
If the user allows access to their location, which APIs would I use to access it?
To make an HTTP request to the RESTful webservice, which APIs should I use?
To process/parse the resulting XML data, which API's should I use?
And if anyone can suggest any good examples online that demonstrate any of this functionality, that would also be helpful.
Thanks so much so much in advance for your wisdom!
For location data, look into CoreLocation
http://developer.apple.com/iphone/library/documentation/CoreLocation/Reference/CoreLocation_Framework/index.html
For HTTP requests I like to use the ASIHTTPRequest class
http://allseeing-i.com/ASIHTTPRequest/
TouchXML makes it easy to work with XML data
http://code.google.com/p/touchcode/wiki/TouchXML
Just today, Luke Redpath posted a complete iPhone REST client he wrote. I can't vouch for it, I only saw today that it even exists. But Luke does good work, so I assume it's pretty decent.
See here:
http://lukeredpath.co.uk/blog/some-code-that-i-wrote.html