Code Monkey home page Code Monkey logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 15, 2024
An update:

It seems that adding a `print urlopen(url, payload)` returns:
<addinfourl at 43340936 whose fp = <socket._fileobject object at 0x29400d0>>

Doing a urlopen(url, payload).read() returns HTML which is hard to read in a 
terminal but I managed to make out a 'You are not signed in.'

I'm signed in to Flickr (in the browser) and the program is properly 
authenticated with delete permissions (dangerous, but I wanted to avoid 
permission problems.)

Original comment by [email protected] on 8 Sep 2010 at 3:11

from flickrpy.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 15, 2024
Fix:

Replacing the current `url` and `payload` variables with the following works.
It seems that API_KEY and method (or one of the two, didn't test which one) 
need to be in the url, not payload. I'll test if only one needed to be in the 
url before committing the fix.

    url = '%s%s/?api_key=%s&method=%s&%s'% \
          (HOST, API, API_KEY, method, _get_auth_url_suffix(method, auth, params))
    payload = '%s' % (urlencode(params))

Original comment by [email protected] on 8 Sep 2010 at 3:23

  • Changed state: Started

from flickrpy.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 15, 2024

Original comment by [email protected] on 10 Sep 2010 at 12:24

  • Changed state: Fixed

from flickrpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.