API Create an Android keystore file

api
#1

How can i upload keystore file using PHP and guzzle?

$results = $this->client->request(‘POST’, $this->api . “apps/{$slug}/android-keystore-files”, [
‘headers’ => $this->getHeaders(),
‘multipart’ => [
[
‘name’ => ‘alias’,
‘contents’ => “alias”,
],
[
‘name’ => ‘password’,
‘contents’ => $password,
],
[
‘name’ => ‘private_key_password’,
‘contents’ => $key_password,
],
[
‘name’ => ‘upload_file_name’,
‘contents’ => “keystore”,
],
[
‘name’ => ‘upload_file_size’,
‘contents’ => $size,
],

				[
					'name'     => "keystore",
					'contents' => fopen( "keystore.file", 'r')
				]
			]

Got - {“message”:“Invalid request body, JSON decode failed”}
if send as
$data = [
‘headers’ => $this->getHeaders(),
‘json’ => $config
];
api returns success, row created, but file wasn’t loaded, because it missing in config.

0 Likes

#2

Hey there!

Could you please send us the URL of your build and enable Support Access so we can take a closer look? :slight_smile:

0 Likes

closed #4

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

0 Likes