Getting Let's Tweet to work with API 1.1

So I got the Let’s Tweet asset from the unity store (Let's Tweet In Unity | Integration | Unity Asset Store) but it is setup for Twitter API 1.0. I updated the code with a change from this site (http://stevenyau.wordpress.com/2013/12/26/working-with-twitter-api-1-1-with-unity/) suggesting multiple edits. It worked at one point but now I keep getting 401 errors. I tried to get it back to working but it was 2 in the morning and I lacked concentration. Looking at it this morning I can’t seem to see anything “wrong” with it.

Does anyone know how to make this work? Thanks in advance!!

I’ve included the class in the question and the original can be found in the txt file.

1755303–111075–Twitter.cs (14.6 KB)
1755303–111076–original.txt (19 KB)

The Twitter.cs file is actually wrong. The one above will give a 403 error with a line of code I was trying to use. The correct and most recent file is here.

1755305–111077–Twitter.cs (14.5 KB)

The latest version of the “Let’s Tweet in Unity” asset does work with Unity 5.5+ by following the steps in the comments

the lines:

var headers = new Hashtable();

become:

Dictionary<string, string> headers = new Dictionary<string, string>();

(Also had to make sure the Twitter App has Read/Write/Access DM and to Reset Keys after Setting that)

We also added Get twitter query support (not just posting a tweet but fetching them) to “Let’s Tweet in Unity” in this video (

), including reviewing/trying/fixing many other Twitter source codes and libraries.

Feel free, anyone, to discuss on our gamedev stream anytime ( Twitch )