]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - extlib/libomb/constants.php
Update admin panel instructions in the TwitterBridge README
[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  * @license http://www.gnu.org/licenses/agpl.html GNU AGPL 3.0
26  * @version 0.1a-20090828
27  * @link    http://adrianlang.de/libomb
28  */
29
30 /**
31  * The OMB constants.
32  */
33
34 define('OMB_VERSION_01', 'http://openmicroblogging.org/protocol/0.1');
35
36 /* The OMB version supported by this libomb version. */
37 define('OMB_VERSION', OMB_VERSION_01);
38
39 define('OMB_ENDPOINT_UPDATEPROFILE', OMB_VERSION . '/updateProfile');
40 define('OMB_ENDPOINT_POSTNOTICE', OMB_VERSION . '/postNotice');
41
42 /**
43  * The OAuth constants.
44  */
45
46 define('OAUTH_NAMESPACE', 'http://oauth.net/core/1.0/');
47
48 define('OAUTH_ENDPOINT_REQUEST', OAUTH_NAMESPACE.'endpoint/request');
49 define('OAUTH_ENDPOINT_AUTHORIZE', OAUTH_NAMESPACE.'endpoint/authorize');
50 define('OAUTH_ENDPOINT_ACCESS', OAUTH_NAMESPACE.'endpoint/access');
51 define('OAUTH_ENDPOINT_RESOURCE', OAUTH_NAMESPACE.'endpoint/resource');
52
53 define('OAUTH_AUTH_HEADER', OAUTH_NAMESPACE.'parameters/auth-header');
54 define('OAUTH_POST_BODY', OAUTH_NAMESPACE.'parameters/post-body');
55
56 define('OAUTH_HMAC_SHA1', OAUTH_NAMESPACE.'signature/HMAC-SHA1');
57
58 define('OAUTH_DISCOVERY', 'http://oauth.net/discovery/1.0');
59 ?>