So besides sitting today and hating the heat because of the amount of hideous creatures that seem to rise from nowhere and annoy/scare me, I have done something useful. Well I say done something useful, more of that I've gained a bit of knowledge - thanks to the BBC Magazine.
So, when I was at school we learned our timetables upto the 12's, so 12x12 is always stuck vividly in my head as 144, because that was the highest we ever got up to, anything more and we'd just use a calculator - after all, that's their purpose, to dumb us... [read more]
So in the previous post in the Twitter Series, I covered how you can send a text-based tweet. Now in this post, I will show you how to send a tweet along with an image.
Now it should be noted at the moment that the PHP Twitter library we are using, Abraham, doesn't seem to support natively Twitter's "statuses/update_with_media" API call (neither did it in v1), however there are a few work arounds, some simple and some a bit complex, however for this tutorial we'll stick to a more simpler workaround. (Hopefully though in the not-too-distant-future, Abraham updates his stuff and... [read more]
You should now have the API running with v1.1, your application setup and your keys/secrets all together? Yes? Great, lets begin...
Hopefully your directory structure is currently like this:
+ Root Folder + twitteroauth - OAuth.php - twitteroauth.php
If so, then in the "Root Folder", create a file called "hello.php".
Now we will begin. At first we will need to assign all the keys and secrets as seperate varibles, like so:
<?php // Consumer key $consumerKey = ''; // Consumer secret $consumerSecret = ''; // Access token $OAuthToken = ''; // Access token secret $OAuthSecret = ''; ?>
Within the single quotes, you will need to put your values that're shown on your Twitter application's page.
Now... [read more]
Now how on earth did I miss this puppy? Well that's twice this week I've missed out on knowing something about Google (This and also my quick US Weather Alert system for tornado watches and tornado warnings - will post about this at a later date though)
Now when I'm fiddling around and programming for my Android phone, I usually use Eclipse as my IDE and use it with the Android SDK (API Level 8 and API Level 15 for Android 2.2 and Android 4.0.3 respectively), however upon searching around the internet for some tutorials... [read more]
Hopefully, you're all running on Twitter's API v1.1 now, as explained in the previous post.
Ok, right. So now to start things off, you will need to head over to the Developers section of Twitter and at the top click the "Sign In" option. Enter your login details as they are for Twitter normally, then you will need to authorise Twitter's Development page to allow you to continue, then once you've authorised it, you will be able to create your first application.
Once everything is authorised, you will be sent back to... [read more]