api fonctionne plus suite au passage en https

  • Compte supprimé
    Compte supprimé

    0 message

    Belgique

    Les informations ne sont plus disponibles car le compte de cet utilisateur est supprimé (Règlement RGPD)
  • Compte supprimé
    Administrateur
    Compte supprimé

    0 message

    Belgique

    Les informations ne sont plus disponibles car le compte de cet utilisateur est supprimé (Règlement RGPD)
  • lauphilat7

    67 messages

    Belgique

    Bonjour,

    J'ai effectué les démarches ci dessus...sans succès.
    J'ai bien mis le token et voici la réponse du système (j'ai remplacé mon token par "montoken":
    Cependant, je ne vois pas l'intéret du premier point

    <?xml version="1.0" encoding="UTF-8"?>
    <Delcampe_Notification>
    <Notification_Token>montoken</Notification_Token>
    <Notification_Datetime>2018-05-07 08:30:17</Notification_Datetime>
    <Notification_Data>
    <Headers>
    <Ressource>/rest/notification/settings?token=montoken</Ressource>
    <Action>POST</Action>
    <Status>403</Status>
    </Headers>
    <body>
    <error>Your token (montoken) is no more valid!</error>
    </body>
    </Notification_Data>
    </Delcampe_Notification>

    Voici le code que j'ai tapé:

    $url = ' Lien (http) ';
    $ch = curl_init();
    curl_setopt ($ch, CURLOPT_URL, $url);
    curl_setopt ($ch, CURLOPT_CUSTOMREQUEST, "GET");
    curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, true);
    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
    $xml_response = curl_exec($ch);

    $url = ' Lien (http) ';
    $ch = curl_init();
    curl_setopt ($ch, CURLOPT_URL, $url);
    curl_setopt ($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
    curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, true);
    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
    $xml_response = curl_exec($ch);

    $postData = array(
    'notificationType' => 'Seller_Item_Close_Sold',
    'destination' => ' Lien (https) '
    );

    $url = ' Lien (http) ';
    $ch = curl_init();
    curl_setopt ($ch, CURLOPT_URL, $url);
    curl_setopt ($ch, CURLOPT_POST, true);
    curl_setopt ($ch, CURLOPT_POSTFIELDS, http_build_query($postData) );
    curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, true);
    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
    $xml_response = curl_exec($ch);
    print_r($xml_response);
    print_r("test ok");
  • lauphilat7

    67 messages

    Belgique

    Je me trompais entre token et api key, bon ca ca tourne mais je suis encore loin d'y être... j'ai eu bon essayer aussi par soap ca ne fonctionne pas mieux...
    Les deux premiers sont tjs sans https ...
    Il n'y a pas un réglage qqpart dans vos interfaces pour changer ce fichu lien?

    object(stdClass)#4 (6) {
    ["id_notification"]=>
    int(18973)
    ["id_user"]=>
    int(245758)
    ["channel"]=>
    string(4) "Curl"
    ["type"]=>
    string(12) "Curl_Default"
    ["destination"]=>
    string(36) " Lien (http) "
    ["active"]=>
    bool(false)
    }
    object(stdClass)#5 (6) {
    ["id_notification"]=>
    int(18974)
    ["id_user"]=>
    int(245758)
    ["channel"]=>
    string(5) "Email"
    ["type"]=>
    string(12) "Curl_Default"
    ["destination"]=>
    string(18) " raphael@newedge.be "
    ["active"]=>
    bool(false)
    }
    object(stdClass)#6 (6) {
    ["id_notification"]=>
    int(18979)
    ["id_user"]=>
    int(245758)
    ["channel"]=>
    string(4) "Curl"
    ["type"]=>
    string(31) "Curl_Seller_Item_Close_Manually"
    ["destination"]=>
    string(36) " Lien (http) "
    ["active"]=>
    bool(false)
    }
    object(stdClass)#7 (6) {
    ["id_notification"]=>
    int(18980)
    ["id_user"]=>
    int(245758)
    ["channel"]=>
    string(4) "Curl"
    ["type"]=>
    string(27) "Curl_Seller_Item_Close_Sold"
    ["destination"]=>
    string(36) " Lien (http) "
    ["active"]=>
    bool(true)
    }
    object(stdClass)#8 (6) {
    ["id_notification"]=>
    int(134043)
    ["id_user"]=>
    int(245758)
    ["channel"]=>
    string(4) "curl"
    ["type"]=>
    string(20) "Curl_Seller_Item_Add"
    ["destination"]=>
    string(37) " Lien (https) "
    ["active"]=>
    bool(true)
    }
    object(stdClass)#9 (6) {
    ["id_notification"]=>
    int(134046)
    ["id_user"]=>
    int(245758)
    ["channel"]=>
    string(4) "curl"
    ["type"]=>
    string(27) "Curl_Seller_Item_Close_Sold"
    ["destination"]=>
    string(37) " Lien (https) "
    ["active"]=>
    bool(true)
    }
    object(stdClass)#10 (6) {
    ["id_notification"]=>
    int(134049)
    ["id_user"]=>
    int(245758)
    ["channel"]=>
    string(4) "curl"
    ["type"]=>
    string(12) "Curl_Default"
    ["destination"]=>
    string(37) " Lien (https) "
    ["active"]=>
    bool(true)
    }
    object(stdClass)#11 (6) {
    ["id_notification"]=>
    int(134052)
    ["id_user"]=>
    int(245758)
    ["channel"]=>
    string(4) "curl"
    ["type"]=>
    string(20) "Curl_Seller_Item_Add"
    ["destination"]=>
    string(37) " Lien (https) "
    ["active"]=>
    bool(true)
    }
    object(stdClass)#12 (6) {
    ["id_notification"]=>
    int(134055)
    ["id_user"]=>
    int(245758)
    ["channel"]=>
    string(4) "curl"
    ["type"]=>
    string(31) "Curl_Seller_Item_Close_Manually"
    ["destination"]=>
    string(37) " Lien (https) "
    ["active"]=>
    bool(true)
    }
    object(stdClass)#13 (6) {
    ["id_notification"]=>
    int(134058)
    ["id_user"]=>
    int(245758)
    ["channel"]=>
    string(4) "curl"
    ["type"]=>
    string(27) "Curl_Seller_Item_Close_Sold"
    ["destination"]=>
    string(37) " Lien (https) "
    ["active"]=>
    bool(true)
    }
    object(stdClass)#14 (6) {
    ["id_notification"]=>
    int(134061)
    ["id_user"]=>
    int(245758)
    ["channel"]=>
    string(4) "curl"
    ["type"]=>
    string(29) "Curl_Seller_Item_Close_Unsold"
    ["destination"]=>
    string(37) " Lien (https) "
    ["active"]=>
    bool(true)
    }
    object(stdClass)#15 (6) {
    ["id_notification"]=>
    int(134064)
    ["id_user"]=>
    int(245758)
    ["channel"]=>
    string(4) "curl"
    ["type"]=>
    string(25) "Curl_Seller_Item_FirstBid"
    ["destination"]=>
    string(37) " Lien (https) "
    ["active"]=>
    bool(true)
    }
    object(stdClass)#16 (6) {
    ["id_notification"]=>
    int(134067)
    ["id_user"]=>
    int(245758)
    ["channel"]=>
    string(4) "curl"
    ["type"]=>
    string(32) "Curl_Seller_Item_Add_Error_Image"
    ["destination"]=>
    string(37) " Lien (https) "
    ["active"]=>
    bool(true)
    }
    object(stdClass)#17 (6) {
    ["id_notification"]=>
    int(134070)
    ["id_user"]=>
    int(245758)
    ["channel"]=>
    string(4) "curl"
    ["type"]=>
    string(12) "Curl_Default"
    ["destination"]=>
    string(37) " Lien (https) "
    ["active"]=>
    bool(true)
    }
    object(stdClass)#18 (6) {
    ["id_notification"]=>
    int(134073)
    ["id_user"]=>
    int(245758)
    ["channel"]=>
    string(4) "curl"
    ["type"]=>
    string(12) "Curl_Default"
    ["destination"]=>
    string(37) " Lien (https) "
    ["active"]=>
    bool(true)
    }
    object(stdClass)#19 (6) {
    ["id_notification"]=>
    int(134076)
    ["id_user"]=>
    int(245758)
    ["channel"]=>
    string(4) "curl"
    ["type"]=>
    string(27) "Curl_Seller_Item_Close_Sold"
    ["destination"]=>
    string(37) " Lien (https) "
    ["active"]=>
    bool(true)
    }
    object(stdClass)#20 (6) {
    ["id_notification"]=>
    int(134079)
    ["id_user"]=>
    int(245758)
    ["channel"]=>
    string(4) "curl"
    ["type"]=>
    string(20) "Curl_Seller_Item_Add"
    ["destination"]=>
    string(37) " Lien (https) "
    ["active"]=>
    bool(true)
    }
    object(stdClass)#21 (6) {
    ["id_notification"]=>
    int(134082)
    ["id_user"]=>
    int(245758)
    ["channel"]=>
    string(4) "curl"
    ["type"]=>
    string(31) "Curl_Seller_Item_Close_Manually"
    ["destination"]=>
    string(37) " Lien (https) "
    ["active"]=>
    bool(true)
    }
    object(stdClass)#22 (6) {
    ["id_notification"]=>
    int(134085)
    ["id_user"]=>
    int(245758)
    ["channel"]=>
    string(4) "curl"
    ["type"]=>
    string(27) "Curl_Seller_Item_Close_Sold"
    ["destination"]=>
    string(37) " Lien (https) "
    ["active"]=>
    bool(true)
    }
    object(stdClass)#23 (6) {
    ["id_notification"]=>
    int(134088)
    ["id_user"]=>
    int(245758)
    ["channel"]=>
    string(4) "curl"
    ["type"]=>
    string(29) "Curl_Seller_Item_Close_Unsold"
    ["destination"]=>
    string(37) " Lien (https) "
    ["active"]=>
    bool(true)
    }
    test ok
  • lauphilat7

    67 messages

    Belgique

    Bon ben j'ai finalement trouvé la solution:
    $objSoapClient = new SoapClient(' Lien (http) ;
    $return = $objSoapClient->authenticateUser('VOTRE_API_KEY');

    if ($return->status === true) {
    $return = $objSoapClient->changeNotificationStatus($return->data, 'ID_DE_LA_NOTIF_A_VIRER');

    if ($return->status === true) {
    print_r($return->data, 1);
    } else {
    print_r($return->errorMsg, 1);
    }
    }

    $objSoapClient = new SoapClient(' Lien (http) ;
    $return = $objSoapClient->authenticateUser('VOTRE_API_KEY');
    if ($return->status === true) {
    $return = $objSoapClient->getNotificationSettings($return->data);
  • Compte supprimé
    Administrateur
    Compte supprimé

    0 message

    Belgique

    Bon ben j'ai finalement trouvé la solution:
    $objSoapClient = new SoapClient(' Lien (http) ;
    $return = $objSoapClient->authenticateUser('VOTRE_API_KEY');

    if ($return->status === true) {
    $return = $objSoapClient->changeNotificationStatus($return->data, 'ID_DE_LA_NOTIF_A_VIRER');

    if ($return->status === true) {
    print_r($return->data, 1);
    } else {
    print_r($return->errorMsg, 1);
    }
    }

    $objSoapClient = new SoapClient(' Lien (http) ;
    $return = $objSoapClient->authenticateUser('VOTRE_API_KEY');
    if ($return->status === true) {
    $return = $objSoapClient->getNotificationSettings($return->data);
    • Posté le 7 mai 2018 à 06:19
    • #857943
    Les informations ne sont plus disponibles car le compte de cet utilisateur est supprimé (Règlement RGPD)

Rejoignez la communauté des collectionneurs !

S'inscrire Se connecter