Changeset 30342 in spip-zone


Ignore:
Timestamp:
Jul 30, 2009, 1:58:19 PM (10 years ago)
Author:
j4444k@…
Message:

prise en compte du partner ID et License KEY maintenant obligatoire pour utiliser l'API XMLOAP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/spip-meteo/genie/meteo.php

    r27065 r30342  
    2929                        $code = $arr['code'];
    3030                        $id_meteo = $arr['id_meteo'];
    31                         $url = "http://xoap.weather.com/weather/local/".$code."?cc=*&unit=s&dayf=".$jours;
     31                        $url = "http://xoap.weather.com/weather/local/".$code."?cc=*&unit=s&dayf=".$jours."&link=xoap&prod=xoap&par=[(#CONFIG{spip-meteo/partner,'Partner'})]&key=[(#CONFIG{spip-meteo/License,'License'})]";
    3232                        $xml = meteo_lire_xml($url,true,"day d=.*",array("hi","low","part p=\"d\"","part p=\"n\""));
    3333                        if ($xml) {
Note: See TracChangeset for help on using the changeset viewer.