Not able to get data from api call

Hi! The issue you’re encountering is likely related to the method property of the request object in your first example and in the second example its the post method instead of GET method.