Connect to Yammer REST API using PowerShell
How to connect to Yammer REST API using PowerShell. Register an App with Yammer, generate a developer token, connect to REST API and get a list of Yammer groups.
1. Register an App with Yammer
https://www.yammer.com/client_applications
Click here to register a new app
Application Name: Yammer-PowerShell
Organization: Your Organisation
Support email: admin@yourdomain.com
Website: https://www.yourdomain.com
Redirect URI: https://www.yourdomain.com
Tick: Agree to Yammer API Terms of Service
2. Generate a developer token
Copy the developer token and save it in your password manager.
3. Connect to Yammer REST API - Groups
Now let's use PowerShell to connect to REST API and get a list of Yammer groups
$token = "12345678912-AbcdE1FGh23t4ijKLMnoP" $url = "https://www.yammer.com/api/v1/groups.json" $headers = @{ "Authorization" = "Bearer "+$token } Invoke-WebRequest -Uri $url -Method Get -Headers $Headers
Reference:
by Author
Register An App With Yammer
https://learn.microsoft.com/en-us/rest/api/yammer/app-registration
Yammer REST API endpoints
https://learn.microsoft.com/en-us/rest/api/yammer/rest-api-rate-limits
Comments