Authorization

By default, the API only returns publicly visible lectures. If a lecture is not visible, no model is returned with Reason = FORBIDDEN. There are two reasons for why a lecture is not visible, which are part of the json output:

  • isPublished: When set to false the lecture is not published (yet). Instead it is in preparation, and expected to be visible at some point in the future.

  • isPublic: When set to false, the lecture is only shown in the talque app and not on the public webpage.

In order to read lectures that are not visible via the JSON API then you need to pass the API client/secret as HTTP headers as described in the authentication section. Authorized API requests will also return lectures where isPublished and isPublic are not both set to true, and you should handle these fields accordingly.

Last updated