matteodv
matteodv

Reputation: 3982

Implement bit.ly url shortening in iPhone app


I'd like to implement bit.ly URL shortening service in my application and from biy.ly's API docs I read It uses JSON to short a link...
Unfortunately, I never used JSON and I don't know where to start.
Can anyone explain me how to implement bit.ly URL shortening service in my application?

Thanks,
Matteo

Upvotes: 1

Views: 1355

Answers (2)

Kdeveloper
Kdeveloper

Reputation: 13819

JSON is just a (Javascript) way to encode you're data in name value pairs in an http POST request. So you just need to use a good encoder/decoder API for you're iphone application. See also this tutorial:

tutorial: Json over http on the Iphone

Want to know more about how JSON works, this book has an excelent chapter on it:

JavaScript: The Good Parts

Upvotes: 1

Stefan Arentz
Stefan Arentz

Reputation: 34945

Check out my bitly project at github ... http://github.com/st3fan/iphone-bitly

Upvotes: 3

Related Questions