Joomla Platform
13.1
Documentation des API du framework Joomla Platform
Page principale
Pages associées
Espaces de nommage
Classes
Fichiers
Exemples
Liste des fichiers
Membres de fichier
Joomla Platform
Liste des choses à faire
Liste des éléments obsolètes
Espaces de nommage
Classes
Fichiers
Liste des fichiers
jplatform-13.1
compat
joomla
access
application
archive
base
cache
client
controller
crypt
data
database
date
document
environment
event
facebook
feed
filesystem
filter
form
github
google
grid
http
image
input
keychain
language
linkedin
log
mail
mediawiki
microdata
model
oauth1
oauth2
object
observable
observer
openstreetmap
profiler
registry
session
string
table
twitter
block.php
directmessages.php
favorites.php
friends.php
help.php
lists.php
oauth.php
object.php
places.php
profile.php
search.php
statuses.php
trends.php
twitter.php
users.php
updater
uri
user
utilities
view
factory.php
legacy
phpmailer
phputf8
simplepie
cms.php
import.legacy.php
import.php
loader.php
platform.php
Membres de fichier
Exemples
•
Tout
Classes
Espaces de nommage
Fichiers
Fonctions
Variables
Pages
help.php
Aller à la documentation de ce fichier.
1
<?php
2
/**
3
* @package Joomla.Platform
4
* @subpackage Twitter
5
*
6
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
7
* @license GNU General Public License version 2 or later; see LICENSE
8
*/
9
10
defined(
'JPATH_PLATFORM'
) or die();
11
12
/**
13
* Twitter API Help class for the Joomla Platform.
14
*
15
* @package Joomla.Platform
16
* @subpackage Twitter
17
* @since 12.3
18
*/
19
class
JTwitterHelp
extends
JTwitterObject
20
{
21
/**
22
* Method to get the supported languages from the API.
23
*
24
* @return array The decoded JSON response
25
*
26
* @since 12.3
27
*/
28
public
function
getLanguages()
29
{
30
// Check the rate limit for remaining hits
31
$this->checkRateLimit(
'help'
,
'languages'
);
32
33
// Set the API path
34
$path =
'/help/languages.json'
;
35
36
// Send the request.
37
return
$this->sendRequest($path);
38
}
39
40
/**
41
* Method to get the current configuration used by Twitter including twitter.com slugs which are not usernames,
42
* maximum photo resolutions, and t.co URL lengths.
43
*
44
* @return array The decoded JSON response
45
*
46
* @since 12.3
47
*/
48
public
function
getConfiguration()
49
{
50
// Check the rate limit for remaining hits
51
$this->checkRateLimit(
'help'
,
'configuration'
);
52
53
// Set the API path
54
$path =
'/help/configuration.json'
;
55
56
// Send the request.
57
return
$this->sendRequest($path);
58
}
59
}
Documentation et API générés le 16/11/2013 par l'équipe
Dev.joomla.fr
de l'
AFUJ
avec la solution