-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update readme and reorganize methods
- Loading branch information
Showing
10 changed files
with
106 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,24 +7,18 @@ module UseParagon | |
# Retrieve the currently authenticated user and their connected integration state | ||
class User < Base | ||
def get | ||
endpoint = path("sdk/me") | ||
|
||
connection.get(endpoint) | ||
connection.get(path("sdk/me")) | ||
end | ||
|
||
# Call set_metadata to associate the authenticated user with metadata from | ||
# your application | ||
# { "meta": { "Email": "[email protected]", "apiKey": "key_Y0kBVldPFInxK" } } | ||
def metadata=(metadata) | ||
endpoint = path("sdk/me") | ||
|
||
connection.patch(endpoint, metadata) | ||
connection.patch(path("sdk/me"), metadata) | ||
end | ||
|
||
def credentials | ||
endpoint = path("sdk/credentials") | ||
|
||
connection.get(endpoint) | ||
connection.get(path("sdk/credentials")) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters