Page 1 of 1

how to share photo to twitter?

Posted: 25 Apr 2013, 11:24
by alfred
I would like to take photo inside a scene, and share it on twitter or some other micro blog like sina. Do I need C# scripting?

Thanks!
alfred

Re: how to share photo to twitter?

Posted: 26 Apr 2013, 17:27
by TobiTobsen
Hi,
we have done this with an additional Software tool that we wrote. I receives the path of the picture and message via OSC and sends a tweet.
Tricky was to enable the additional Software to log in to twitter. But its doable :-).
We used Twitter4J as it was written in Java.

Cheers,
Tobi

Re: how to share photo to twitter?

Posted: 27 Apr 2013, 16:22
by alfred
Hi Tobi,
could you pls say it in detail, for example, how can I get picture or message from a scene via OSC first, need scripting at this stage? In addition, I am not sure what do you mean "Tricky was to enable the additional Software to log in to twitter. But its doable"?
Can you share me some snapshots of the software?

Thanks a lot!
alfred

Re: how to share photo to twitter?

Posted: 28 Apr 2013, 10:29
by TobiTobsen
Hi Alfred,
you need a piece of software that connects to twitter, we wrote it in Java using Twitter4J.
Furthermore you need to register that software at twitter. In our case, this software needs to register using OAuth by sending some keys to twitter and back.
Here is a link: http://twitter4j.org/en/index.html#howToUse

I am pretty sure you can write this also directly in Ventuz using a C# Skript but we like the idea of having it as a seperate tool.

We send an OSC message to the Java tool containing one String that points to the path where a picture is stored and another String with the message that the user wants to post.
As there was no direct support sending a string using the OSC Node, we solved this with a little C# skript that sends OSC messages supporting Strings.

Best regards,
Tobias

Re: how to share photo to twitter?

Posted: 29 Apr 2013, 17:35
by alfred
Hi Tobi,
Do you mean that in order to send string via OSC, I need to C# scripting first. In addition, I also need to develop a software and write it in Java, is that right?

Thanks!
alfred

Re: how to share photo to twitter?

Posted: 29 Apr 2013, 20:06
by TobiTobsen
Hi Alfred,
you need a software that conects to twitter... this could be done inside Ventuz using for example a c# skript.

Or you use an external software that takes care for connecting to twitter. But this software needs to know where to find the images and the message you want to post.
This external software can be developed using Java, but there are plenty of other libs for other languages that could handle this as well.
If you are lookng for such a solution, it's defintely some software deveolping work needed.

Cheers,
Tobi