Comments (2)
Sorry, this doesn't really relate to this package.
from laravel-bitbucket.
I guess I'll have to explain in better way. Following is my code in controller:
<?php
namespace App\Http\Controllers;
use GrahamCampbell\Bitbucket\Facades\Bitbucket;
use Illuminate\Http\Request;
class TestController extends Controller
{
public function commentTest()
{
$data = Bitbucket::api('Repositories\Repository')->get('noeticitservices', 'nitseditor');
return response()->json(['data' => $data], 200);
}
}
I'm unable to get any response in this, now if I do return $data
I get following data:
HTTP/1.1 200 OK
Server: nginx
Vary: Authorization
Vary: Accept-Encoding
Content-Type: application/json; charset=utf-8
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Date: Tue, 13 Feb 2018 09:21:41 GMT
X-Served-By: app-139
ETag: "7b8332218b7bc6b7c4a2f50e3ab9c45c"
X-Static-Version: 476dd7889f1a
X-Content-Type-Options: nosniff
X-Accepted-OAuth-Scopes: repository
X-Credential-Type: password
X-Render-Time: 1.31000494957
Connection: keep-alive
X-Request-Count: 141
X-Frame-Options: SAMEORIGIN
Last-Modified: Mon, 12 Feb 2018 20:17:03 GMT
X-Version: 476dd7889f1a
Content-Length: 71360
{"pagelen": 30, "values": [{"hash": "********9b580ff91967547d61*****", "repository": {"links": {"self": {"href": "https://api.bitbucket.org/2.0/repositories/********/*****"}, "html": {"href......
Which should be actually:
{"pagelen": 30, "values": [{"hash": "********9b580ff91967547d61*****", "repository": {"links": {"self": {"href": "https://api.bitbucket.org/2.0/repositories/********/*****"}, "html": {"href......
But somehow I'm also getting this:
HTTP/1.1 200 OK
Server: nginx
Vary: Authorization
Vary: Accept-Encoding
Content-Type: application/json; charset=utf-8
.
.
.
For more relevance let me show you the screenshot:
Moreover in browser dom when called:
I've not used any of the feature except your facade, hope you get what is the issue. Thank you for your time.
from laravel-bitbucket.
Related Issues (16)
- Different credentials HOT 3
- Oauth 2 Consumer HOT 4
- Download a repository HOT 12
- setPerPage() doesn't seem to work for repositories HOT 1
- Getting all branches from a repository? HOT 2
- The purpose of the package is not very clear HOT 2
- Only supports Bitbucket Cloud (API v2.0)
- Refresh Token is required HOT 1
- Resource not found error for the deployments endpoint HOT 1
- Tags HOT 1
- Installation Error on Laravel 6.2
- Can't install on Laravel 7 - illuminate/contracts version conflict HOT 1
- JWT token problem
- Authentication via token, how I can get the token key? HOT 2
- gentlero/bitbucket-api version HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-bitbucket.