- edited description
How create lists all repositories
Issue #37
invalid
Hello
How I can do this?
I have:
$repositories = new Bitbucket\API\Repositories();
$repositories->setCredentials( new Bitbucket\API\Authentication\Basic($this->bb_user, $this->bb_password) );
$return = $repositories->all();
echo $return;
I got list repositories but with headers:
HTTP/1.1 200 OK
Server: nginx/1.6.2
Date: Sat, 21 Nov 2015 10:20:56 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 18156
Connection: keep-alive
X-Served-By: app22
X-Render-Time: 0.0679278373718
X-Static-Version: f4e8d16fd144
Vary: Authorization, Cookie
X-Version: f4e8d16fd144
ETag: "736c5e99fc01b08fda879e41fa68f81b"
X-Request-Count: 127
X-Frame-Options: SAMEORIGIN
X-Accepted-OAuth-Scopes: repository
Strict-Transport-Security: max-age=31536000
X-Content-Type-Options: nosniff
X-Cache-Status: BYPASS
{"pagelen": 10, "values": [{"scm": "hg", "has_wiki": true, "name": "tweakmsg", "links": {"watchers": {"href":
I would clear json format beacuse now I have problem in Angular to show list. Is posibility to remove headers?
Comments (2)
-
reporter -
- changed status to invalid
You can use
getContent()
method on a response in order to get the body.$return = $repositories->all()->getContent();
- Log in to comment