playMaker

Author Topic: Twitter?  (Read 9995 times)

laynardo

  • Junior Playmaker
  • **
  • Posts: 54
    • View Profile
Twitter?
« on: February 29, 2016, 07:35:17 PM »
If anyone knows how to get twitter searches and posts into Playmaker, I would love to hear it.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14388
  • Official Playmaker Support
    • View Profile
Re: Twitter?
« Reply #1 on: March 02, 2016, 12:58:48 AM »
Hi,

 What do you mean? I have a twitter account dedicated to PlayMaker.


Or do you mean inside your project as a feature to expose to your players?

Stan's asset has support for twitter and PlayMaker.

Bye,

 Jean

laynardo

  • Junior Playmaker
  • **
  • Posts: 54
    • View Profile
Re: Twitter?
« Reply #2 on: March 02, 2016, 06:46:38 AM »
I want to pull a search on twitter, and display it within Unity. Either as an actual string or a trigger to make something happen. For example, anytime someone uses the word "love" in a tweet, I want X to happen in Unity.

This is something I used to be able to do when Twitter was easily searchable with an XML feed, but they changed their API.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14388
  • Official Playmaker Support
    • View Profile
Re: Twitter?
« Reply #3 on: March 02, 2016, 11:49:32 PM »
Hi,

 That's something you'll need to check with twitter asset's provider like Stan. I haven't worked with twitter api deeply enough to be of any help here. Sorry :)

Bye,

 Jean

laynardo

  • Junior Playmaker
  • **
  • Posts: 54
    • View Profile
Re: Twitter?
« Reply #4 on: March 03, 2016, 07:54:56 AM »
got it. checking it out

laynardo

  • Junior Playmaker
  • **
  • Posts: 54
    • View Profile
Re: Twitter?
« Reply #5 on: March 06, 2016, 04:48:04 PM »
Stan's just posts to twitter seems like. I actually need to do a twitter search and display the tweets in game.

dudebxl

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
Re: Twitter?
« Reply #6 on: March 06, 2016, 05:33:18 PM »
On twitter api website, it says you can search tweets by using a json query ( u have to build it) You should be able to build a json query, wwwpost, get result as another json.. You have to have a twitter dev account.. Or user need to open account..

Search Get search/tweets api on google..

laynardo

  • Junior Playmaker
  • **
  • Posts: 54
    • View Profile
Re: Twitter?
« Reply #7 on: March 06, 2016, 05:42:15 PM »
yea, i went through that and setup a dev account. unfortunately, i think it's over my head. It gives me this stuff (attached).

side note- i do know how to use datamaker to parse out xml/json info. I am doing that for weather underground. but with weather underground, you just put your api key in the url.

dudebxl

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
Re: Twitter?
« Reply #8 on: March 07, 2016, 10:36:26 AM »
sorry, can't help. no idea.

laynardo

  • Junior Playmaker
  • **
  • Posts: 54
    • View Profile
Re: Twitter?
« Reply #9 on: March 07, 2016, 01:09:24 PM »
hah! it's cool. whenever I figure it out, I will post the answer.  :)

dudebxl

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
Re: Twitter?
« Reply #10 on: March 13, 2016, 10:57:19 AM »

laynardo

  • Junior Playmaker
  • **
  • Posts: 54
    • View Profile
Re: Twitter?
« Reply #11 on: March 13, 2016, 12:27:45 PM »
I tried to yea. I just couldn't figure it fully out. I put in all four of my keys into the component, but wasn't sure where to go from there in playmaker.

dudebxl

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
Re: Twitter?
« Reply #12 on: March 13, 2016, 01:13:18 PM »
Lol, yeah same here.. It works but can't figure out how to adapt it for my own use (change query etc)..  ???

dudebxl

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
Re: Twitter?
« Reply #13 on: March 14, 2016, 01:28:02 PM »
I was able to understand and convert the code to playmaker.

This is an alpha. Let me know if it works on your side (it works for me but only tested GET as that is all i need for my project) so that i can post on ecosystem. In theory it should work with everything from https://dev.twitter.com/rest/public - all GET and POST query and works inside editor.

How to make a query:

'(Parameters=Value)'
For example: (q=Ufo)(count=100)(result_type=popular)
with
setTwitterUrl = https://api.twitter.com/1.1/
setTwitterUrlType = search/tweets.json

will produce the Raw Json data (then you need Datamaker)

Let me know thanks..


Will post on ecosystem a final version soon.
« Last Edit: March 21, 2016, 06:32:43 PM by dudebxl »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14388
  • Official Playmaker Support
    • View Profile
Re: Twitter?
« Reply #14 on: March 14, 2016, 10:51:13 PM »
Hi,

 Nice, thanks for this. Haven't tested it, but I'll sure use that when I'll do.

Bye,

 Jean