-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.php
47 lines (27 loc) · 888 Bytes
/
index.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
44
45
46
47
<?php
/*
* FellowshipOne Helper Class Examples.
*/
ini_set('display_errors','1');
session_start();
/*
session_destroy();
var_dump($_SESSION);
die('clear session for debug');
*/
require('lib/com.rapiddigitalllc/FellowshipOne.php');
//find key in F1 Portal under admin > integration > application keys
$settings = array(
'key'=>'you api key',
'secret'=>'you api secret',
'baseUrl'=>'https://YOURCHURCHCODE.staging.fellowshiponeapi.com',//notice the church code & staging plz!!
'debug'=>false,
);
echo "<pre>";//view formatted debug output
$f1 = new FellowshipOne($settings);
//Login Examples -- uncomment one at a time to test
//require('examples/1stpartylogin.php');
require('examples/2ndpartylogin.php');
//require('examples/3rdpartylogin.php');
//Resource Examples -- uncomment to test
//require('examples/resources.php');