Jozef Spisiak - 2013-04-25 10:03:35 -
In reply to message 2 from Manuel Lemos
Yes. Here are 2 API calls, which work for me, when oauth_client_class is initialized for Bitbucket:
$success = $client->CallAPI(
'https://api.bitbucket.org/1.0/user',
'GET',
array(),
array('FailOnAccessError'=>true),
$user);
$client->url_parameters = FALSE;
$success = $client->CallAPI(
'https://api.bitbucket.org/1.0/repositories',
'POST',
array('name' => 'testRepository'),
array('FailOnAccessError'=>true),
$repository
);
And here is link to bitbucket help regarding posting new repository: https://confluence.atlassian.com/display/BITBUCKET/repository+Resource#repositoryResource-POSTanewrepository