bitLy API call
- Author
- Nyro
Definition at line 12 of file bitLy.class.php.
◆ afterInit()
Call just after the configuration initialisation
Definition at line 40 of file object.class.php.
◆ beforeInit()
Call just before the configuration initialisation
Definition at line 35 of file object.class.php.
◆ doAction()
doAction |
( |
|
$action, |
|
|
array |
$prm |
|
) |
| |
|
protected |
Call the API and return an array of the json object if OK
- Parameters
-
string | $action | The action to perform |
array | $prm | The setting for the call |
- Returns
- stdClass
Definition at line 30 of file bitLy.class.php.
◆ getAttr()
Get an attribute
- Parameters
-
string | $name | Attribute name |
- Returns
- mixed|null The attribute or null if not set
Definition at line 48 of file object.class.php.
◆ getCfg()
Get the configuration object
- Returns
- config
Definition at line 67 of file object.class.php.
◆ getDefPrm()
Get Default parameter set in configuration file
- Returns
- array
Definition at line 19 of file bitLy.class.php.
◆ setAttr()
setAttr |
( |
|
$name, |
|
|
|
$value |
|
) |
| |
|
inherited |
Set an attribute
- Parameters
-
string | $name | Attribute name |
mixed | $value | Attribute value |
Definition at line 58 of file object.class.php.
◆ shorten()
Shorten an URL with bit.ly
- Parameters
-
string | $longUrl | The URL to shorten |
- Returns
- string the URL shortened
Definition at line 46 of file bitLy.class.php.
◆ $cfg
The documentation for this class was generated from the following file: