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

Adding GetCurrentUser method #199

Conversation

chrisforrette
Copy link
Contributor

Hi there!

This is a simple PR adding a GetCurrentUser method to users.go, hitting the endpoint documented here:

https://api-reference.pagerduty.com/#!/Users/get_users_me

...which identifies the authenticated user when using an OAuth token or a user-level API key.

Copy link
Contributor

@stmcallister stmcallister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thank you for adding this!

@stmcallister stmcallister merged commit a9778e0 into PagerDuty:master Feb 19, 2020
@chrisforrette chrisforrette deleted the chrisforrette/add-current-user-method branch February 20, 2020 01:17
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