Wanchai / FTPbucket

FTPbucket is a PHP script that enables you to sync your BitBucket or GitHub repository with any web-server
102 stars 22 forks source link

Bitbucket api 2.0 : Cant't get lists of files! cURL error due to API no longer supported #25

Closed pankydcoder closed 5 years ago

pankydcoder commented 5 years ago

I started facing an issue since few days where ftpbucket was not able to pull the commits to my ftp location.

It seems bitbucket has made some changes and removed some api's.

I started debugging the issue and found out that its giving below issue: Cant't get lists of files! cURL error: I logged the response for url being used i.e.
$url = 'https://bitbucket.org/api/1.0/repositories/' . $this->data->ftp['full_name'] . '/changesets/' . $cmt['hash'] . '/'; Response i get: {"type": "error", "error": {"message": "Resource removed", "detail": "This API is no longer supported.\n\nFor information about its removal, please refer to the deprecation notice at: https://developer.atlassian.com/cloud/bitbucket/deprecation-notice-v1-apis/"}} So we would need to update the code in FtpBucket to adhere to new api changes. I want to know if someone has faced this issue and was able to resolve, kindly share it here.

Thanks