pktck / ParsePy

A Python wrapper for the Parse.com API
GNU General Public License v3.0
79 stars 24 forks source link

Hi! #8

Open amdstorm opened 12 years ago

amdstorm commented 12 years ago

I am not sure if parse.com has updated the API since you developed it. I had an authorization problem when using the code.

what i did to fix was to change the authorization

    request.add_header("X-Parse-Application-Id", APPLICATION_ID)
    request.add_header("X-Parse-REST-API-Key", MASTER_KEY

I added ParseFile class to handle fileuploading

    frontImage = ParsePy.ParseFile("image",image_location,'image/jpg')
    frontImage.save()

    product = ParsePy.ParseObject("Product")
    product.front_image = {"name": frontImage.name(), "__type": "File"}
dgrtwo commented 12 years ago

I have a similar change to the authorization in my own pull request. I hope you take either!