I am using BitBucket's PHP Lib to create a repository:
$repo = new \Bitbucket\API\Repositories\Repository();
$repo->setCredentials( new \Bitbucket\API\Authentication\Basic( $this->username, $this->password ) );
$slug = self::generateSlug( $domainName );
return $repo->create( $this->username, $slug, array(
'name' => $domainName,
'scm' => 'git',
'description' => "Project: {$domainName}",
'language' => 'php',
'is_private' => true,
'forking_policy' => 'no_public_forks',
));
But all I am getting back is 'NoneType' object has no attribute 'pk'
Has anyone come across this before?
Regards