I am trying to access a list from a SharePoint hosted app.
I am following instructions in this article:
According to the article, to access the list, I should use :
appweburl + "/_api/web/lists/getbytitle('My List')/items"
I would say that I should use hostweburl instead as the list is hosted in My SharePoint site. Indeed, with appweburl I get a 404 error.
Anyway, using hostweburl doesn't solve. The function errorHandler return a message that the web app wasn't ditributed for this url.
Have you got any ideas or could you clarify which is the correct url to use?