Skip to content
This repository was archived by the owner on Jan 18, 2021. It is now read-only.
This repository was archived by the owner on Jan 18, 2021. It is now read-only.

Modify user() method option names to be case insensitive #17

Closed
@gitbrent

Description

@gitbrent

The user() method takes options with names like title, email, etc.

If a user doesn't utilize the correct case, the user method returns the current user's properties (the API treats it as if a null value was passed). This is both an unwanted design outcome and a potentially confusing response for users.

The option names should be made case insensitive to correct the issue.

sprLib.user({ title:'Bill Gates' }).then(...) // Returns Bill's user properties
sprLib.user({ Title:'Bill Gates' }).then(...) // Returns the current users properties

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions