Skip to content

Instantly share code, notes, and snippets.

@23Pstars
Last active May 24, 2016 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 23Pstars/800993df96a9fd6ecf99796f189c735e to your computer and use it in GitHub Desktop.
Save 23Pstars/800993df96a9fd6ecf99796f189c735e to your computer and use it in GitHub Desktop.
<?php
set_time_limit( 0 );
require_once( 'cURL.php' );
require_once( 'GitHub.php' );
require_once( 'Bitbucket.php' );
/** Bitbucket credentials */
$username = 'User';
$password = 'password';
$account_slug = 'user';
$repo_slug = 'repo';
/** /
$github = new GitHub( $username, $password, $account_slug, $repo_slug );
$status = $github->_init()->get_status();
/***/
/** /
$bitbucket = new Bitbucket( $username, $password, $account_slug, $repo_slug );
$status = $bitbucket->_init()->get_status();
/***/
//print_r( $status );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment