re31640

example syntax for createdCompare from GET /learn/api/public/v1/users/{userId}/courses

Discussion created by re31640 on Feb 2, 2018
Latest reply on Feb 7, 2018 by re31640

We have yearly instanced courses, and want to return a list of just the courses a user is enrolled on that were created after say May 2017...

So the createdCompare parameter for /learn/api/public/v1/users/{userId}/courses looks like a winner...

 

but after messing about with a number of possible combo's I can't work out the syntax (or maybe date format?)

 

$request = new HTTP_Request2($constants->HOSTNAME . $constants->USER_PATH . '/' . $user_id . '/courses?createdCompare>=?????????????', HTTP_Request2::METHOD_GET);

 

any examples gratefully recieved.

 

Outcomes