Skip to content

Conversation

@amdstorm
Copy link

@amdstorm amdstorm commented Apr 3, 2012

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
Copy link

dgrtwo commented Apr 10, 2012

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants