Jump to content

Request for change to fdp api


pconkie

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?

Link to comment
Share on other sites

  • 2 weeks later...
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?

Link to comment
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?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...