Différences
Ci-dessous, les différences entre deux révisions de la page.
user:domenge:apicongres [2018/11/05 09:56] domenge créée |
user:domenge:apicongres [2019/03/25 21:15] (Version actuelle) domenge [Exemple de còde PHP per trapar l'API REST del Congrès] |
||
---|---|---|---|
Ligne 31: | Ligne 31: | ||
class CurlCongres extends CurlClass{ | class CurlCongres extends CurlClass{ | ||
private $key = MA_CLEF; | private $key = MA_CLEF; | ||
- | private $domains = ["expressoc.php","topoc.php","basic.php", "verboc.php","puntlenga.php", "synonyms", "rhymes.php"]; | + | private $domains = ["expressoc.php","topoc.php","basic.php", "verboc.php","puntlenga.php", "synonyms.php", "rhymes.php"]; |
public function __construct(){ | public function __construct(){ | ||
$s = "https://api.locongres.org/" . $this->domains[3] . "?key=". $this->key . "&inf=cantar&var=leng&per=1&num=pl"; | $s = "https://api.locongres.org/" . $this->domains[3] . "?key=". $this->key . "&inf=cantar&var=leng&per=1&num=pl"; |