はじめに
今回は、メンバー一覧取得を生成
URL 貼り付けて自動生成からは出来ないので、Swagger Editor から、Yaml定義をします。
以下の続き
以下のAPIが検索すると見つかってきますけど古いものなので無視しましょう
今回使用する Rest API についての補足
旧_GetGroups
https://www.yammer.com/api/v1/groups
GetGroups
https://www.yammer.com/api/v1/users/in_group/:Group_Id.json
上記を確認すると、以下のように URL Parameter が Limit しかないように思えるが、実際は num_per_page が使えます
メンバー一覧 Action の追加定義
New Action から新しい Action を追加
Swagger Editor で定義追加して、更新
メンバー一覧部分
/api/v1/users/in_group/{groupID}.json:
get:
responses:
default:
description: default
schema: {}
summary: GetMembers
operationId: GetMembers
description: メンバー一覧を取得
parameters:
- {name: groupID, in: path, description: group ID, required: true, type: integer}
x-ms-visibility: important
利用例
参考資料
GroupID を指定した、メンバー一覧の取得 API
Open API
あとがき
こんな感じで、Yammer Rest API を全部定義して、社内で使えるようにしたいものだ・・
ただ、Power Automateではなく、Logic Appsで定義したほうがもしかして共有はしやすい??(未調査)
Keyword
How to create custom connector to get a group members