Instagram and Processing

Comments

  
  1. rafael fernandes says:

    TANK YOU SO MUCH FOR THIS CODE!
    But, I got this Error Message. Could you help me?

    java.io.IOException: Server returned HTTP response code: 400 for URL: https://api.instagram.com/v1/tags/YOURTAGHERE/media/recent?client_id=YOURCLIENTIDHERE
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1944)
    at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1939)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1938)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1508)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:263)
    at processing.core.PApplet.createInputRaw(PApplet.java:7152)
    at processing.core.PApplet.createInput(PApplet.java:7098)
    at processing.core.PApplet.createReader(PApplet.java:6904)
    at processing.core.PApplet.loadJSONObject(PApplet.java:6080)
    at sketch_190523a.setup(sketch_190523a.java:19)
    at processing.core.PApplet.handleDraw(PApplet.java:2425)
    at processing.awt.PSurfaceAWT$12.callDraw(PSurfaceAWT.java:1547)
    at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:313)
    Caused by: java.io.IOException: Server returned HTTP response code: 400 for URL: https://api.instagram.com/v1/tags/YOURTAGHERE/media/recent?client_id=YOURCLIENTIDHERE
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1894)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:347)
    at processing.core.PApplet.createInputRaw(PApplet.java:7145)
    … 7 more
    The file “https://api.instagram.com/v1/tags/YOURTAGHERE/media/recent?client_id=YOURCLIENTIDHERE” is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable.
    NullPointerException

Leave a Comment

Your email address will not be published.

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url=""> 

Current ye@r *

© 2024 - Michelle Chandra

Powered by WordPress - Built by ThemeShift