mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Progress for Spectre import.
This commit is contained in:
@@ -37,19 +37,13 @@ class NewCustomerRequest extends SpectreRequest
|
||||
*/
|
||||
public function call(): void
|
||||
{
|
||||
$data = [
|
||||
$data = [
|
||||
'data' => [
|
||||
'identifier' => 'default_ff3_customer',
|
||||
],
|
||||
];
|
||||
$uri = '/api/v3/customers/';
|
||||
//$response = $this->sendSignedSpectrePost($uri, $data);
|
||||
$response = ['data' => [
|
||||
'id' => 527858,
|
||||
'identifier' => 'default_ff3_customer',
|
||||
'secret' => 'qpZjRPJRTb6mMcQgwDkssZ3fQVVDPIH04zBlkKC6MvI',
|
||||
],
|
||||
];
|
||||
$uri = '/api/v3/customers/';
|
||||
$response = $this->sendSignedSpectrePost($uri, $data);
|
||||
// create customer:
|
||||
$this->customer = new Customer($response['data']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user