forked from calcinai/xero-php
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.php
39 lines (28 loc) · 1.24 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
$xero_base_config = [
'xero' => [
// API versions can be overridden if necessary for some reason.
//'core_version' => '2.0',
//'payroll_version' => '1.0',
//'file_version' => '1.0'
],
'oauth' => [
'callback' => 'oob',
'consumer_key' => 'k',
'consumer_secret' => 's',
//If you have issues passing the Authorization header, you can set it to append to the query string
//'signature_location' => \XeroPHP\Remote\OAuth\Client::SIGN_LOCATION_QUERY
//For certs on disk or a string - allows anything that is valid with openssl_pkey_get_(private|public)
'rsa_private_key' => 'file://certs/private.pem',
'rsa_public_key' => 'file://certs/public.pem',
],
//These are raw curl options. I didn't see the need to obfuscate these through methods
'curl' => [
CURLOPT_USERAGENT => 'XeroPHP Test App',
//Only for partner apps - unfortunately need to be files on disk only.
//CURLOPT_CAINFO => 'certs/ca-bundle.crt',
//CURLOPT_SSLCERT => 'certs/entrust-cert-RQ3.pem',
//CURLOPT_SSLKEYPASSWD => '1234',
//CURLOPT_SSLKEY => 'certs/entrust-private-RQ3.pem'
],
];