Complete Novice to This Requiring Some Help

188 views
Skip to first unread message

Calum Martin

unread,
Dec 4, 2013, 6:35:04 PM12/4/13
to twitc...@googlegroups.com
Hi,

I've been reading and reading the Github information over and over again, but I've had no luck on understanding how to implement some basic information into my site.

I have a good understanding of HTML and CSS, and a basic understanding of PHP.

My client would like to have 4 things on the web page I'm developing: 

1) A follow button which users can press to follow the twitch channel
2) The number of users online currently watching the stream
3) The total number of channel views
4) The total number of followers the channel has

I've already figured out how to use a bit of basic php include and echo code to display the number of users watching, but that was as far as I had got. I have all the relevant keys etc, but am at a complete loss as to how to even implement even the most basic things into the site. 

Perhaps I've read far too many conflicting and different ways to do it which is confusing me.

I'd really appreciate all the help I can get.

Thank you!

Anthony Diaz

unread,
Dec 7, 2013, 3:19:03 PM12/7/13
to twitc...@googlegroups.com
Calum,

For my clarification so I can better aid you, what part of the process are you having trouble with?  Are you having issues with grabbing the information, parsing the information out for use in AJAX, or having issues using that information via AJAX on your page?  As for the follow button, I have written a very simple example here that uses my PHP library to perform the call.  It uses AJAX to start the call, and then hands everything off to PHP to both grab the authentication code based on the username provided and perform the call.  once the call completes, either with a success or a failure, the PHP will return the bool success of the call (and has room to expand for a user not having authenticated your application).

If you can provide me the information you require, I will be glad to help what I can.

   - Anthony 'IBurn36360' Diaz
Reply all
Reply to author
Forward
0 new messages