I cound’t found exact anser here. If it’s already solved thing, I’m sorry.
I tested below code to get an exact user.
But in this code, I got all users info, that appearently the filter doesn’t work properly.
I’m quite newbie to do this around.
Hope someone helps. Thanks.
let res = await axios.get(
"https://xxx.shotgunstudio.com/api/v1/entity/HumanUser",
{
headers: {
"Content-Type":"application/vnd+shotgun.api3_array+json",
Accept: "application/json",
Authorization: "Bearer" + ` ${access_token}`,
},
params: {
fields: "*",
filters: [["id", "is", 127]],
}
}
);
// Output to check
console.log(res.data.data.length);
console.log(res.data);
returns all users info without no errors