Jump to content
pconkie

Request for change to fdp api

Recommended Posts

I’m trying to get users of a group but need at minimum to return user_uuid, displayname, surname, forename, pupil_number and thumbnail picture.

as far as I can tell I have to choose between having pupil_number or thumbnail? Any chance of both?

Share this post


Link to post
Share on other sites
On 29/06/2019 at 09:45, pconkie said:

I’m trying to get users of a group but need at minimum to return user_uuid, displayname, surname, forename, pupil_number and thumbnail picture.

as far as I can tell I have to choose between having pupil_number or thumbnail? Any chance of both?

What API request are you making and which parameters are you sending?

Share this post


Link to post
Share on other sites
1 hour ago, adamw said:

What API request are you making and which parameters are you sending?

Frog.Model.api('groups.getMembers' etc etc
//gets me all I need except pupil_number i.e. UPN
               
FrogOS.fdp({
url: 'group/users/'+group_data[0],
path: '/api/fdp/2/',
type: 'GET'  etc etc
               
//gets me all I need (including pupil_number) except thumbnail 
//none of the other fdp group apis seem to be better

I can solve the problem by doing a second call to:

Frog.Widget.Model.api('users.getSummary', { 'uuid' : uuids { etc etc

which does include thumbnails

Just wanted to know if I had missed a single api call that had everything i needed in return?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...