Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 360voice.com
 Community Showcase
 360Tweet
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

DarkSynopsis

237,554

Zone: Recreation

Total games played: 567

Current Streak: 0

Longest Streak: 354

Comments Made: 1,337

New Gamer

United Kingdom
13 Posts

Posted - May 03 2009 :  12:17:04 AM  Show Profile  Visit DarkSynopsis's Homepage  Reply with Quote
For the past few months I've been tweeting my latest gamerscore gains each day and have finally started to hate having to do it each day!

So I came up with something to make the process easier for myself and well anyone! Thanks to 360Voice & XML I've managed to come up with a few PHP scripts that will tweet certain stuff for me like

- Latest Achievement Increase
- Most Recent Badge
- Latest Gamerscore Increase
- Current Gamerscore
- Leaderboard Position (Based on Gamerscore)

The site can be found over @ http://360tweet.ninjasfate.com/ and its pretty much finished!

I will say now this requires you enter your Twitter Password but there is nothing in the PHP that would store it or let me know what it was!

I will say use at your own risk!

I'm pretty new to PHP and definitely XML and I'm surprised I managed to pull this off :)

Hopefully its fine to use 360Voice to post to twitter :) I'm not to sure, If not I will take the site down.

For now hopefully it comes in useful to some :) and now time to leave it for the day and get some sleep :) and maybe come up with a site logo later.

I will be checking this thread daily so if there are any bugs/suggestions please let me know and I'll see what I can do :)

NOTE: All the information is pulled from 360Voice so if you end up having the same tweet twice you might want to delete one version and wait till 360Voice updates :)

Edited by - DarkSynopsis on May 03 2009 12:26:20 AM

Koding

246,708

Zone: Recreation

Total games played: 885

Current Streak: 520

Longest Streak: 813

Comments Made: 1,337

Moderator

USA
4900 Posts

Posted - May 03 2009 :  12:48:46 AM  Show Profile  Visit Koding's Homepage  Reply with Quote
That's pretty cool...here's some thoughts after my initial trials:

* Implement the Twitter OAuth system instead of asking for a username and password.

* Show what is going to be tweeted before it tweets so something can be added to it or it can be canceled before the send.

* How do you figure get the last badge earned? When I did it, it told me Viral VIP was the last one I got but that's not right. Actually the last badge I got was the 10 day streak badge (even though I lost it the next day).

* Once it's working perfectly, an automation system would be nice. I wouldn't mind having it make a weekly post telling how many games I played the prior week and how many achievements and how much gamerscore I got for those games.

That's it for now. If I think of anything else, I'll post it here. Nice job!

My: | Kode360.com | Raptr | TrueAchievements | Xfire | Facebook | Twitter | GamerDNA |
| Game Stats: Forza Horizon | Saints Row The Third | Halo 4 | Battlefield 3 |
| Back when I was 360Voice Member of the Moment |
| I am a Level 6 Xbox Ambassador (<--- it's working again!!) |
Check out this new gaming site! ---> Gamer Jockies


Get your own sig bars like these at 360vui


Check out your 360voice User Info at Kode360.com!
(And join the 360vui Users Group!)
Go to Top of Page

DarkSynopsis

237,554

Zone: Recreation

Total games played: 567

Current Streak: 0

Longest Streak: 354

Comments Made: 1,337

New Gamer

United Kingdom
13 Posts

Posted - May 03 2009 :  08:28:31 AM  Show Profile  Visit DarkSynopsis's Homepage  Reply with Quote
Awesome, I will look into getting the Twitter OAuth System put in if I can work it out :)

Just as I stopped working on it last night I did decent there should be a box that will show whats going to be tweeted so I shall work that in :)

I'm guessing I never worked out latest badge earned right in the end if its saying Viral VIP for you, I assumed it was working since that was my last badge.

And finally if I manage to get the Twitter Auth System working I'm guessing I can implant an automation system :)

Edit:
I've managed to login with the Twitter OAuth but having problems knowing how to send tweets... Am still working on it though :)

Edit2:
I've managed to get it to tweet now my problem is I can't seem to get it to pull the data from the feed and then tweet it.

Final Edit:
If anyone has any insight on how to tweet say $gamertag using the OAuth system please do let me know.

Every time I send the tweet its just sending it as $gamertag and not converting it to the actual gamertag :(

Once this problem is sorted it should all be working and I can upgrade it from whats up now.

The Line =
$content = $to->OAuthRequest('https://twitter.com/statuses/update.xml', array('status' => '$gamertag'), 'POST');

Not sure if I'm missing something.

Edited by - DarkSynopsis on May 04 2009 08:44:57 AM
Go to Top of Page

Davem3 TF

79,371

Zone: Underground

Total games played:

Current Streak: 0

Longest Streak: 780

Comments Made: 1,337

Moderator

USA
3582 Posts

Posted - May 04 2009 :  11:51:12 AM  Show Profile  Visit Davem3 TF's Homepage  Reply with Quote
not sure how to do any of that, , but i love the system and idea, if you work out the bugs i am in :-)


How To Keep Your Streak| Swearing Policy | 360 Voice F.A.Q.'s| Signature Size Policy

"I am just going to pretend you didn't make this thread. :)" --Change Agent

Ubisoft = the new replacement for Sominex - the cure for Insomnia - MetallicaGhost

GS before joining 360V.... 2660!

Go to Top of Page

DarkSynopsis

237,554

Zone: Recreation

Total games played: 567

Current Streak: 0

Longest Streak: 354

Comments Made: 1,337

New Gamer

United Kingdom
13 Posts

Posted - May 04 2009 :  5:34:58 PM  Show Profile  Visit DarkSynopsis's Homepage  Reply with Quote
Well since I've not beheld to get the Twitter OAuth System working I've updated the site to show a Preview before you finally Tweet :)

Hopefully later on I'll update the site so you can fill out a custom tweet and use data pulled from 360Voice :)

I am still trying to get the OAuth System working but for now this shall do :) since once I have it working I should beheld to transfer over most of what I've done.

Edited by - DarkSynopsis on May 04 2009 5:38:07 PM
Go to Top of Page

DarkSynopsis

237,554

Zone: Recreation

Total games played: 567

Current Streak: 0

Longest Streak: 354

Comments Made: 1,337

New Gamer

United Kingdom
13 Posts

Posted - Sep 11 2010 :  01:41:13 AM  Show Profile  Visit DarkSynopsis's Homepage  Reply with Quote
I know this over a year over due but since Twitter forced it I got around to getting OAuth working if anyone happens to care :)

Now that OAuth is working I might start working on the site some more and have it auto tweet eventually and such.
Go to Top of Page

TX Eegras

22,426

Zone: Recreation

Total games played:

Current Streak: 0

Longest Streak: 51

Comments Made: 1,337

Senior Gamer

USA
994 Posts

Posted - Nov 07 2010 :  11:56:55 AM  Show Profile  Visit TX Eegras's Homepage  Reply with Quote
$content = $to->OAuthRequest('https://twitter.com/statuses/update.xml', array('status' => '$gamertag'), 'POST');

should be

$content = $to->OAuthRequest('https://twitter.com/statuses/update.xml', array('status' => "$gamertag"), 'POST');

Single quotes (') are literal strings, PHP won't parse variables in it.
Double quotes (") are not literal strings, variables work.

Better way

$content = $to->OAuthRequest('https://twitter.com/statuses/update.xml', array('status' => $gamertag), 'POST');

Because $gamertag is already a string, no need to convert it twice.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To:
360voice Community © 2006 360voice.com Go To Top Of Page
Snitz Forums 2000