In order to obtain an API from instagram, we had to go through to the developers page of the website.
We registered our application, and signed up for an API in a similar way to the Flickr one.
From this we retrieved our client ID and secret. Our client ID was to be used as our access token to allow us to search across images on instagram.
Using this code for instagram, which originally put images into a grid like so, we modified the code in order to do what we wanted.
the array for the images is stored above the setup in order to declare that the JSONArray of images is called all.
Within the set up, a function called loadEmUp is used, which is what runs in the setup and retrieves the images before drawing them.
The function is explained outside of the draw loop, and is made a function by using void at the start. The code at the moment loads images with the tag of art. It retrieves the images and places them into a grid with the use of the integers (int) row and column. It does this in the ‘if’ part, when the images fill up a column of 5 it then resets the column back to zero and adds images onto a new row therefore creating a grid of images.
The images are not moving or changing which is what we want them to do. This is the basic code we used and modified.