文档
测试

查询分组

GET
http://foxconn.gateway.api.liyueyun.com/api/picjulei/groups/:gid

接口描述

创建分组

headers

参数名
类型
描述
必填
Authorization
string
Bearer AccessToken
必填

params参数

参数名
类型
描述
必填
gid
string
分组id
必填

响应参数

参数名
类型
描述
必填
gid
string
示例:a5johH7FuWDCJPtx
必填
uids
string
示例:f111111,222222,333333
必填

说明 / 示例

**查询分组信息使用GET请求,路径参数中填写gid。** **请求头中需附带Bearer Token 。** **调用成功后,若查询到分组对象,返回 { gid: xxx, uids: xxx },未查询到返回null。** #### 错误列表 |httpCode|error|message| |-|-|-| |403|SecretIsInvalid|无效的 secret |400|INVALID_PARAMETER|无效的参数 ### 各平台的代码示例 ##### C#访问示例代码: ```CSharp var client = new RestClient("https://foxconn.gateway.api.liyueyun.com/api/picjulei/groups/111"); client.Timeout = -1; var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer AccessToken"); IRestResponse response = client.Execute(request); Console.WriteLine(response.Content); ``` ##### Java访问示例代码: ~~~ java OkHttpClient client = new OkHttpClient().newBuilder() .build(); Request request = new Request.Builder() .url("https://foxconn.gateway.api.liyueyun.com/api/picjulei/groups/111") .method("GET", null) .addHeader("Authorization", "Bearer AccessToken") .build(); Response response = client.newCall(request).execute(); ~~~ #### Nodejs访问示例代码: ~~~javascript var axios = require('axios'); var config = { method: 'get', url: 'https://foxconn.gateway.api.liyueyun.com/api/picjulei/groups/111", headers: { 'Authorization': 'Bearer AccessToken' } }; axios(config) .then(function (response) { console.log(JSON.stringify(response.data)); }) .catch(function (error) { console.log(error); }); ~~~ #