Skip to content

Get the Archive stream #402

@EnzChe

Description

@EnzChe

Hello,

$client = new Client();
$client->authenticate(Yii::$app->params['git_api_token'], Yii::$app->params['git_api_key'], Client::AUTH_HTTP_TOKEN);
$stream = $client->api('repo')->contents()->archive($projectOwner, $projectName, 'zipball');
$fileContent = $client->api('repo')->contents()->download($projectOwner, $projectName, 'installSMDE.bat');
var_dump($stream); exit;

The contents()->download works on my private GitHub Repo, but the contents()->archive return an empty string.
Before the last merge (2.0) it was working, am I doing something wrong ?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions