Consuming onedrive rest api in development environment using localhost

孤者浪人 提交于 2019-12-25 04:13:37

问题


Want to access list of files stored in one drive using jquery. REST API provides a parameter to redirect to the application namely redirect_uri, can it be localhost or it should be public domain.

How developer have to test onedrive rest api.


回答1:


You need to map your redirect_uri to localhostof your web server. This can be done by adding it in host file found under \Windows\System32\drivers\etc\hosts.

After adding, it should look like

127.0.0.1    MyDomain.com
127.0.0.1    AnotherDomain.com

For more information on this, refer MSDN Dev Center - Testing web apps locally



来源:https://stackoverflow.com/questions/26762868/consuming-onedrive-rest-api-in-development-environment-using-localhost

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!