1 minute reading time (204 words)

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 

Related Posts

 

Comments

No comments made yet. Be the first to submit a comment
Already Registered? Login Here
Saturday, 23 September 2023
You can help support this website by buying me a coffee!
Buy Me A Coffee