Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server

Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!

how to share photo to twitter?

Q and A about functionality and how to solve a special task for your application.

Moderator: Support

Post Reply
alfred

how to share photo to twitter?

Post by alfred » 25 Apr 2013, 11:24

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

TobiTobsen
Posts: 93
Joined: 18 Jan 2012, 20:02

Re: how to share photo to twitter?

Post by TobiTobsen » 26 Apr 2013, 17:27

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
http://www.radar-touch.com
http://www.prime-touch.com

Want to filter or transform TUIO data? http://code.google.com/p/tuiotoolbox/
Looking for a tool generating Testpattern for Softedge projections??? I can help: http://code.google.com/p/projection-calc/

alfred

Re: how to share photo to twitter?

Post by alfred » 27 Apr 2013, 16:22

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

TobiTobsen
Posts: 93
Joined: 18 Jan 2012, 20:02

Re: how to share photo to twitter?

Post by TobiTobsen » 28 Apr 2013, 10:29

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
http://www.radar-touch.com
http://www.prime-touch.com

Want to filter or transform TUIO data? http://code.google.com/p/tuiotoolbox/
Looking for a tool generating Testpattern for Softedge projections??? I can help: http://code.google.com/p/projection-calc/

alfred

Re: how to share photo to twitter?

Post by alfred » 29 Apr 2013, 17:35

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

TobiTobsen
Posts: 93
Joined: 18 Jan 2012, 20:02

Re: how to share photo to twitter?

Post by TobiTobsen » 29 Apr 2013, 20:06

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
http://www.radar-touch.com
http://www.prime-touch.com

Want to filter or transform TUIO data? http://code.google.com/p/tuiotoolbox/
Looking for a tool generating Testpattern for Softedge projections??? I can help: http://code.google.com/p/projection-calc/

Post Reply