Вопрос

I'm trying to get started with Yammer API. I have been able to go through the oauth process and obtain the token. Now, I just want to perform searches within the current user's account.

The Yammer REST documentation states that I need to query against this url: https://www.yammer.com/api/v1/search.json

What I don't know is how to provide the query and what the query syntax is. I would really appreciate it if someone could help me with the correct syntax to provide the following:

  1. The search query
  2. The access token

For example, would I need something like (the syntax below is not working for me):

https://www.yammer.com/api/v1/search.json?search=marketing&token=abcd1234

As always, I would appreciate any help I can get.

Это было полезно?

Решение

You need to make a GET request to https://www.yammer.com/api/v1/search.json?search=marketing and specify the OAuth token on the Authorization header in the following format:

Authorization: Bearer abcd1234

When you do this you'll get JSON back with the search results.

The ability to specify the OAuth token on the URL is no longer supported.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top