Comments (4)
The library provides you github api v3, you can check actual documentation here http://developer.github.com/v3/pulls/#get-a-single-pull-request
I just checked code snippet you have provided and the output is exactly the same as mentioned in v3 docs.
Can't really help on that because github no longer supports older versions AFAIK.
But of course you can try your code snippet with older versions of library.
from php-github-api.
GitHub API v3 also supports custom media types for pull requests.
Please try running the following:
curl https://api.github.com/repos/KnpLabs/php-github-api/pulls/92 \
-H "Accept: application/vnd.github.v3.diff"
from php-github-api.
@morozov you have to specify header key instead of plain text:
$client->setHeaders(array(
'Accept' => sprintf('application/vnd.github.%s.diff', $client->getOption('api_version'))
));
from php-github-api.
👍 Thanks!
from php-github-api.
Related Issues (20)
- Repo documentation out-of-date? HOT 4
- Secrets Scanning Alerts HOT 1
- Sync a fork branch with the upstream repository
- Document the use of authenticate() using ENV variable HOT 4
- Suggestion to remove authorizations::create from doc HOT 2
- ResultPager::get() can return string HOT 4
- Add .phpstorm.meta.php to improve code completion HOT 1
- Add support for new github api versioning
- Env API
- Correct Async usage
- projects returning empty. HOT 1
- api('issue')->find() is still documented but was removed
- Http\Client\HttpClient Deprecation HOT 2
- GraphQL queries are not cached
- Allow php-http/cache-plugin version 2 HOT 6
- pull request closing references HOT 1
- reactions
- Get owner's repositorie's activity
- Update `Apps` to accept query parameters as per specification
- Cannnot Remove an Issue 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 php-github-api.