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.
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.
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.
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/>.
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
34 define('OMB_VERSION_01', 'http://openmicroblogging.org/protocol/0.1');
36 /* The OMB version supported by this libomb version. */
37 define('OMB_VERSION', OMB_VERSION_01);
39 define('OMB_ENDPOINT_UPDATEPROFILE', OMB_VERSION . '/updateProfile');
40 define('OMB_ENDPOINT_POSTNOTICE', OMB_VERSION . '/postNotice');
43 * The OAuth constants.
46 define('OAUTH_NAMESPACE', 'http://oauth.net/core/1.0/');
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');
53 define('OAUTH_AUTH_HEADER', OAUTH_NAMESPACE.'parameters/auth-header');
54 define('OAUTH_POST_BODY', OAUTH_NAMESPACE.'parameters/post-body');
56 define('OAUTH_HMAC_SHA1', OAUTH_NAMESPACE.'signature/HMAC-SHA1');
58 define('OAUTH_DISCOVERY', 'http://oauth.net/discovery/1.0');