api fonctionne plus suite au passage en https

  • Account eliminato
    Account eliminato

    0 messaggi

    Belgio

    Le informazioni non sono più disponibili perché l'account di questo utente è stato eliminato (Regolamento RGPD).
  • Account eliminato
    Amministratore
    Account eliminato

    0 messaggi

    Belgio

    Le informazioni non sono più disponibili perché l'account di questo utente è stato eliminato (Regolamento RGPD).
  • lauphilat7

    67 messaggi

    Belgio

    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 = ' Link (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 = ' Link (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' => ' Link (https) '
    );

    $url = ' Link (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 messaggi

    Belgio

    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) " Link (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) " Link (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) " Link (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) " Link (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) " Link (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) " Link (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) " Link (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) " Link (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) " Link (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) " Link (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) " Link (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) " Link (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) " Link (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) " Link (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) " Link (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) " Link (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) " Link (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) " Link (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) " Link (https) "
    ["active"]=>
    bool(true)
    }
    test ok
  • lauphilat7

    67 messaggi

    Belgio

    Bon ben j'ai finalement trouvé la solution:
    $objSoapClient = new SoapClient(' Link (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(' Link (http) ;
    $return = $objSoapClient->authenticateUser('VOTRE_API_KEY');
    if ($return->status === true) {
    $return = $objSoapClient->getNotificationSettings($return->data);
  • Account eliminato
    Amministratore
    Account eliminato

    0 messaggi

    Belgio

    Bon ben j'ai finalement trouvé la solution:
    $objSoapClient = new SoapClient(' Link (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(' Link (http) ;
    $return = $objSoapClient->authenticateUser('VOTRE_API_KEY');
    if ($return->status === true) {
    $return = $objSoapClient->getNotificationSettings($return->data);
    • Creato 7 mag 2018 a 06:19
    • #857943
    Le informazioni non sono più disponibili perché l'account di questo utente è stato eliminato (Regolamento RGPD).

Unisciti alla community di collezionisti!

Registrati Login