Download the PHP package buddy-works/buddy-works-php-api without Composer
On this page you can find all versions of the php package buddy-works/buddy-works-php-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download buddy-works/buddy-works-php-api
More information about buddy-works/buddy-works-php-api
Files in buddy-works/buddy-works-php-api
Package buddy-works-php-api
Short Description Buddy Works SDK for PHP
License Apache-2.0
Homepage https://github.com/buddy-works/buddy-works-php-api
Informations about the package buddy-works-php-api
Buddy Works APIs PHP SDK
Official PHP client library for Buddy Build Server with CI.
Installation
This library is distributed on packagist
and is working with composer
. In order to add it as a dependency, run the following command:
Compatibility
PHP version | SDK version |
---|---|
^8.0 | 1.4 |
^7.3 | 1.3 |
^7.2 | 1.2 |
5.5 | 1.1 |
Usage of OAUTH
First you need to add application in your Buddy ID.
You will then obtain clientId & clientSecret to execute this code:
scopes
are arrays of strings - help
state
should be an unguessable random string. It is used to protect against cross-site request forgery attacks.
redirectUrl
is optional more
You should redirect the user to the created URL. Upon authorization, the user should get back to your page (configured in application or passed to the method)
query params
will get you the code & state. State should be the same as you passed before. Code is used in next step to exchange for access token:
State should be the same as in getAuthorizeUrl method.
Usage of direct tokens
You can also use API Tokens.
That functionality is provided for testing purposes and will only work for individual tokens generated per user.
All requests will be called on behalf of the user who provided token.
API's
For detailed info what send for which method, error codes, rates & limits - check Buddy documentation
To start using api you should pass to Buddy constructor acquired access token.
Workspaces
Get workspaces
Get workspace
Webhooks
Get webhooks
Add webhook
Get webhook
Edit webhook
Delete webhook
Tags
Get tags
Get tag
Ssh Keys
Get keys
Add key
Delete key
Get key
Source
Get contents
Add file
Edit file
Delete file
Projects
Get projects
Add project
Get projects
Edit project
Delete project
Get project members
Add project member
Get project member
Edit project member
Delete project member
Profile
Get user
Edit user
Pipelines
Get pipelines
Add pipeline
Get pipeline
Edit pipeline
Delete pipeline
Get pipeline actions
Add pipeline action
Get pipeline action
Edit pipeline action
Delete pipeline action
Permissions
Get permissions
Add permission
Get permission
Edit permission
Delete permission
Members
Get members
Add member
Get member
Edit member
Delete member
Get member projects
Integrations
Get integrations
Get integration
Groups
Get groups
Add group
Get group
Edit group
Delete group
Get group members
Add group member
Get group member
Delete group member
Executions
Get executions
Run execution
Get execution
Cancel execution
Retry execution
Emails
Get emails
Add email
Delete email
Commits
Get commits
Get commit
Compare commits
Branches
Get branches
Get branch
Add branch
Delete branch
License
Please see the license file for more information.