Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi! #8

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Hi! #8

wants to merge 5 commits into from

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