-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.php
43 lines (36 loc) · 1.47 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
40
41
42
43
<?php
/**
* Copyright 2016 OneAll, LLC.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
*/
// Please enter your OneAll Site settings here
define ('SITE_SUBDOMAIN', ''); // Example: mysubdomain
define ('SITE_PUBLIC_KEY', ''); // Example: b842444d-295c-472f-8aed-b757c4ff678f
define ('SITE_PRIVATE_KEY', ''); // Example: e27d4bb2-a4fb-4c3a-90d9-e5b20368cd61
if (strlen (SITE_SUBDOMAIN) == 0 || strlen (SITE_PUBLIC_KEY) == 0 || strlen (SITE_PRIVATE_KEY) == 0)
{
die ("Please enter your configuration in ". __FILE__);
}
// Should not be changed
define ('SITE_DOMAIN', 'https://' . SITE_SUBDOMAIN . '.api.oneall.com');
// HTTP Transfer Handler
require 'includes/oneall_curly.php';
// Pretty JSON Formatter
require 'includes/oneall_pretty_json.php';
// Setup new connection
$oneall_curly = new oneall_curly ();
$oneall_curly->set_option ('USERPWD', SITE_PUBLIC_KEY . ':' . SITE_PRIVATE_KEY);
// Change to 1 to display the CURL output
$oneall_curly->set_option ('VERBOSE', 0);