0

Unable to retrieve data from API

I want to retrieve all the courses using thi url
https://api.openlearning.com/v2.1/courses/?url=&api_key=API_KEY

I made sure the api_key works with other requests such as users, however, when using the swagger or sending out the http request, I get 

{
  "meta": {
    "status": 404,
    "error": "No course found"
  },
  "data": null
}

Thanks

7 replies

null
    • Customer Success & Onboarding Team Leader at OpenLearning
    • Alenka_Prezelj
    • 5 yrs ago
    • Reported - view

    Hi Bayron, we're currently looking into this. We'll get back to you shortly!

    • Customer Success & Onboarding Team Leader at OpenLearning
    • Alenka_Prezelj
    • 5 yrs ago
    • Reported - view

    Hi Bayron Lara Hi there! Our devs looked into this, and there is an issue here. However, it would be very useful if you can tell us what you are trying to do - that way we can see if the API can be made to work for your use case. Thanks!

    • Bayron_Lara
    • 5 yrs ago
    • Reported - view

    Hi Alenka ,
    I want to make a single call to collect all the courses that you provide. So I can display them in my application

      • Customer Success & Onboarding Team Leader at OpenLearning
      • Alenka_Prezelj
      • 5 yrs ago
      • Reported - view

      Bayron Lara Thanks, we have passed that info to our devs. Will update you soon.

    • openlearningkdu
    • 5 yrs ago
    • Reported - view

    Hi,


    Did we have the update, we wanted to do the same as well. Trying to pull out all the courses that created under our institution.

     

    Thanks.

      • Customer Success & Onboarding Team Leader at OpenLearning
      • Alenka_Prezelj
      • 5 yrs ago
      • Reported - view

      openlearningkdu Hi there, is there some kind of error message that you get when you try to do this?

      • Technical Specialist
      • Suriavarman
      • 5 yrs ago
      • Reported - view

      openlearningkdu hi there! The error on this API is still being looked into, as the functionality of this might be different from what was written in the documentation. 
      As for listing courses in the institution, we are looking into adding another option under the Institution API, but we'll let you know if and when this is implemented. 

Content aside

  • 5 yrs agoLast active
  • 7Replies
  • 54Views
  • 4 Following