Tag Archives: twitter

Working with Twitter API 1.1 with Unity

Update 9th Oct 2014: Let’s Tweet in Unity has been updated to work with API 1.1: https://www.assetstore.unity3d.com/en/#!/content/536

Back around late summer/early autumn, I was working on a project that involved showing Tweets in a unique way using Unity. The concept itself was not complicated and with Unity being Unity, we thought there would be a plugin or existing code to work with Twitter’s API and we could prototype the concept relatively quickly.

We were wrong. It took us a few days between us to get the search query working with Unity using Twitter API 1.1.

There are quite a few resources and plugins for Twitter’s old API (1.0) but none for 1.1. 1.0 was a really simple interface in terms of producing a URL query and the result would be a JSON string. 1.1 added the need to use OAuth authentication which has caused problems for many developers judging from the various forums littered with queries.

At this stage we had two problems, getting the OAuth Authentication correct and working with Unity’s WWW class for web queries instead of the .NET framework.

Continue reading

Advertisements
Tagged , , , ,