Friday, November 28, 2014

Tutorial 3 - php to processing

Today discussion, is to connect from Php to Processing.

Notes of discusssion
- How to string Json data to processing
- LoadJsonArray

Agreed action
Check on processing load string tutorial to get Json


Monday, November 24, 2014

Php tutprials Twitter API

Good day :D 
I found an youtube tutorial on how to use Php to get Twitter Api by Selim HallaƧ, search tweets or hashtag. Pretty excited on the treasure i found on Youtube. I tried and it works. 






My working file :

Able to grab screenName from people who mentioned me :D  But before start to run it, I have to connect to my local server with Xampp and make sure all the servers are running. 


Xampp





Dreamweaver 






Next step, how to connect it with processing






Friday, November 21, 2014

Tutorial 2 - In depth to processing

Throughout the week, I managed to found source online on using processing to get twitterAPI .
The library called Twitter4j. One of the famous library in the internet when search 'processing' 'twitter'. So I give a try follow step by step from the tutorial but there are some problems/ errors cause of some version update. 

After discuss with my tutor , Yee Siang,

Notes of discussion:
1. Problem with twitter4j documentation
2. Old version of processing or twitter4j
3. debug coding processing

Agreed action:

1. Try other library/ download to latest version 
2. Try to use php to call twitter API
3. Get username 


Due to the unknown error of the coding in processing, not sure cause of the twitter4j version mismatch my processing version or any other reason, i plan to give up on using processing to fetch twitter api but change to Php to fetch the data.

Here the useful link that i found to help the progress goes on :D


https://twitteroauth.com/

As it wrote 'the most popular PHP library for use with the twitter API . Im glad to found one and it can be installed the library and here's a fully documentation done by Abraham on Github. ( https://github.com/abraham/twitteroauth )



Will share the code after I done it right :D Feeling hopeful again. 






Friday, November 14, 2014

Tutorial 1 - update

My project is more related to pulling API programming , I am assign to Yee Siang and Kelvin as my specialist consultation for this final year project. First meeting with my tutor YeeSiang and Kelvin after the break. Updated them with my latest change on ideation of my final year project.


Area of discussion:
- Project Ideation change and Using Processing software for the project


Notes of discussion :

1.  From previous idea 'Artdea' to interactive art project

Initially plan to use Instagram hashtag to create a campaign that require user to share their contents and it changes to # as a key of participation in a data visualisation art project. People contributes their # to create a piece of artwork.


2. Change my project from using # Instagram to Twitter

The reason of changing Instagram to Twitter is because in this case, Twitter is more likely suitable to the project by posting status but not with image. Instagram is toward more to photo social media. And I've observed that Twitter users are likely update their timeline frequently than Instagram user.

3. Twitter API

First step is to study the Twitter API in order to code and stream data from Twitter .
( https://dev.twitter.com/overview/documentation )


" The REST APIs provides programmatic access to read and write Twitter data. Author a new Tweet, read author profile and follower data, and more. The REST API identifies Twitter applications and users using OAuth; responses are available in JSON. " - TwitterDeveloper



4. Twitter Access Token

Before start to stream , we have to register the application and go to manage application to obtain the key and access token.


Get the consumer key and consumer secret for the code later.


5. how to use processing to fetch twitter API and draw something on screen


Look for processing documentation that people share online. Here's is a blog that i found pretty clear with the tutorial it shared using Twitter4j library .

http://saglamdeniz.com/blog/?p=124

Here the official twitter4j library webpage and to free download the source.

http://twitter4j.org/en/


Agreed action:

1. Look for twitter API documentation online and to fetch data with processing

2. Try basic processing and see what I can do or learn so far.


So far so good.