Skip to content

Optimizes and adds some methods - #22

Merged
Leveton merged 15 commits into
Leveton:masterfrom
JoJordens:master
Apr 23, 2015
Merged

Leveton merged 15 commits into
Leveton:masterfrom
JoJordens:master

Conversation

@JoJordens

Copy link
Copy Markdown
  • improved errors
  • buffered files
  • new user methods
  • improved find method
  • support for session tokens
  • new unit tests

JoJordens and others added 15 commits April 21, 2015 10:56
Parse error object contains more information about what went wrong
Fall-through takes care of it, post and put have identical headers
If they worked on it they should be added as contributors, right?

No idea if I got everyone
insertUser: create new users
updateUser: update keys other than username and email
The 'find' method can now be used to find a single object as well as many objects with every combination of query constraints that Parse allows.
findMany is now deprecated
Adds a method to retrieve content of one or more user objects.
Retrieving user data is identical to "find" except for the url (granted '/1/classes/_User' works too but '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/1/users' is the proper way to do it).
Previous getUser method is now replaced by loginUser.
Session tokens only work with the rest api key. While using the master key you can edit all data anyway.
Parse.test.js runs tests against the master key, while testRestApiKey.js runs tests against the rest api key to test sesstion tokens for users.
getUser and getFileByUser now redirect to their respective newer version while logging a warning message to the console.
Also removes one console.log from Parse.test.js and adds one more contributor.
Leveton added a commit that referenced this pull request Apr 23, 2015
Optimizes and adds some methods
@Leveton
Leveton merged commit 0640bfc into Leveton:master Apr 23, 2015
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