任何人都可以为我提供 php 或用于 bitbucket api 的 nodejs oauth 库,以便我可以通过 ajax 调用与库交互吗?

Can anyone provide me php or nodejs oauth library for bitbucket api so that, I can interact with the library with ajax calls?

我需要一个基于 php(最好)的库,例如 loginWithBitbucket.php 这样,我向它发送授权请求,它将通过打开新选项卡并要求用户登录来授权 bitbucket 用户凭据并进行授权,然后 return 响应数据,即 JSON 数据作为 ajax 请求的响应。

有一个library for node.js and one for PHP。两者都只是 Google 的快速搜索。如果你下次搜索图书馆,你一定要使用 Google。

Oauth.io 就是这样一个库。它非常易于使用。