【问题标题】:can I use restfull framework for Django to use api [closed]我可以使用 Django 的 restfull 框架来使用 api [关闭]
【发布时间】:2020-01-16 05:22:20
【问题描述】:

我想使用 tomtom web api 进行路由:https://developer.tomtom.com 每次我搜索如何在 django 中使用 API 时,我都会得到 restfull 框架,这不是用于构建 API 吗?如果我可以使用它来使用现有的 API 如果是的话我想知道如何? 还是python的requests库就够了?

【问题讨论】:

    标签: python django api frameworks tomtom


    【解决方案1】:

    您绝对应该尝试requests 包(link),它完全可以用于构建任何 REST API 客户端。

    您可能找到的 Django 包是 django rest framework,它用于构建 API 接口。但是您想要的不是构建 API,而是发出请求并集成到外部 API。请求包是执行此操作的简单选择。

    我找到了很好的 API 与 python here 集成教程。祝你好运 ;-)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-04-26
      • 1970-01-01
      • 2013-10-13
      • 1970-01-01
      • 2018-02-11
      • 2023-03-11
      • 2011-12-10
      相关资源
      最近更新 更多