Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/opensoft/tfs-rest-api
php library for interacting with tfs/vso REST api
https://github.com/opensoft/tfs-rest-api
Last synced: 8 days ago
JSON representation
php library for interacting with tfs/vso REST api
- Host: GitHub
- URL: https://github.com/opensoft/tfs-rest-api
- Owner: opensoft
- License: mit
- Created: 2015-11-04T01:24:35.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-12T00:03:14.000Z (about 9 years ago)
- Last Synced: 2024-04-28T10:06:35.352Z (7 months ago)
- Language: PHP
- Size: 109 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PHP TFS Rest Api
================A simple object oriented wrapper for the [Visual Studio Online / Team Foundation Server REST API](https://www.visualstudio.com/en-us/integrate/api/overview) in PHP 5.5
Uses Guzzle 6 for REST requests.
Installation
------------Installable through composer via:
$ composer require opensoft/tfs-rest-api
Basic Usage
-----------```php
[
CURLOPT_HTTPAUTH => CURLAUTH_NTLM,
CURLOPT_USERPWD => 'username:password'
]
]
);// retrieve a work item by its ID
$response = $client->workItemTracking()->getWorkItem(12345);// get the result as an array
print_r($response->asArray());// follow hypermedia links
$response = $response->follow('workItemHistory');print_r($response->asArray());
```**Caution:** There are many more APIs exposed by TFS/VSO than are implemented here. We've implemented only what we've needed internally for now, and will implement more as the need arises. Feel free to submit pull requests implementing more APIs and we'll be happy to merge them.
License
-------Licensed under the MIT License - see the LICENSE file for details