]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - extlib/libomb/constants.php
Merge branch '0.8.x' into 0.9.x
[quix0rs-gnu-social.git] / extlib / libomb / constants.php
1 <?php
2 /**
3  * Constants for libomb
4  *
5  * This file contains constant definitions for libomb. The defined constants
6  * are service and namespace URIs for OAuth and OMB as used in XRDS.
7  *
8  * PHP version 5
9  *
10  * LICENSE: This program is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU Affero General Public License as published by
12  * the Free Software Foundation, either version 3 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Affero General Public License for more details.
19  *
20  * You should have received a copy of the GNU Affero General Public License
21  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
22  *
23  * @package   OMB
24  * @author    Adrian Lang <mail@adrianlang.de>
25  * @copyright 2009 Adrian Lang
26  * @license   http://www.gnu.org/licenses/agpl.html GNU AGPL 3.0
27  **/
28
29 /**
30  * The OMB constants.
31  **/
32
33 define('OMB_VERSION_01', 'http://openmicroblogging.org/protocol/0.1');
34
35 /* The OMB version supported by this libomb version. */
36 define('OMB_VERSION', OMB_VERSION_01);
37
38 define('OMB_ENDPOINT_UPDATEPROFILE', OMB_VERSION . '/updateProfile');
39 define('OMB_ENDPOINT_POSTNOTICE', OMB_VERSION . '/postNotice');
40
41 /**
42  * The OAuth constants.
43  **/
44
45 define('OAUTH_NAMESPACE', 'http://oauth.net/core/1.0/');
46
47 define('OAUTH_ENDPOINT_REQUEST', OAUTH_NAMESPACE.'endpoint/request');
48 define('OAUTH_ENDPOINT_AUTHORIZE', OAUTH_NAMESPACE.'endpoint/authorize');
49 define('OAUTH_ENDPOINT_ACCESS', OAUTH_NAMESPACE.'endpoint/access');
50 define('OAUTH_ENDPOINT_RESOURCE', OAUTH_NAMESPACE.'endpoint/resource');
51
52 define('OAUTH_AUTH_HEADER', OAUTH_NAMESPACE.'parameters/auth-header');
53 define('OAUTH_POST_BODY', OAUTH_NAMESPACE.'parameters/post-body');
54
55 define('OAUTH_HMAC_SHA1', OAUTH_NAMESPACE.'signature/HMAC-SHA1');
56
57 define('OAUTH_DISCOVERY', 'http://oauth.net/discovery/1.0');
58 ?>