Post Item Crash

  • Konto gelöscht
    Konto gelöscht

    0 Beiträge

    Frankreich

    Die Informationen sind nicht mehr verfügbar, da das Konto dieses Benutzers gelöscht wird (DSGVO-Grundverordnung).
  • Konto gelöscht
    Konto gelöscht

    0 Beiträge

    Frankreich

    Die Informationen sind nicht mehr verfügbar, da das Konto dieses Benutzers gelöscht wird (DSGVO-Grundverordnung).
  • Konto gelöscht
    Konto gelöscht

    0 Beiträge

    Frankreich

    Die Informationen sind nicht mehr verfügbar, da das Konto dieses Benutzers gelöscht wird (DSGVO-Grundverordnung).
  • Konto gelöscht
    Konto gelöscht

    0 Beiträge

    Frankreich

    Die Informationen sind nicht mehr verfügbar, da das Konto dieses Benutzers gelöscht wird (DSGVO-Grundverordnung).
  • @dorian
    Administrator

    69 Beiträge

    Belgien

    Die Informationen sind nicht mehr verfügbar, da das Konto dieses Benutzers gelöscht wird (DSGVO-Grundverordnung).
    • Erstellt am 30.06.2017 um 04:34
    • #716974
    Hello numiscollection-com,

    Sorry for the delay.
    Does your posted datas looks like this?

    Array (
    [item] => Array (
    [id_country] => 0
    [id_category] => 80
    [price_starting] => 3.00
    [price_increment] => 0.1
    [currency] => EUR
    [title] => my title...
    [personal_reference] => my_personal_ref
    )
    [type] => auction
    )

    Feel free to send us what you post, it might be useful to find out what's going wrong.

    Have a nice day,
  • Konto gelöscht
    Konto gelöscht

    0 Beiträge

    Frankreich

    Die Informationen sind nicht mehr verfügbar, da das Konto dieses Benutzers gelöscht wird (DSGVO-Grundverordnung).
  • @dorian
    Administrator

    69 Beiträge

    Belgien

    Die Informationen sind nicht mehr verfügbar, da das Konto dieses Benutzers gelöscht wird (DSGVO-Grundverordnung).
    • Erstellt am 03.07.2017 um 10:03
    • #718300

    Hello,

    This sample has been checked, executed and works perfectly:

    $postData = array(
    'type' => 'fixedPrice',
    'item' => array(
    // MANDATORY DATA
    'id_country' => 0,
    'id_category' => 80,
    'fixed_price' => '1.00',
    'currency' => 'EUR',
    'title' => 'My title',
    'personal_reference' => 'My personal ref2'
    ));

    $ch = curl_init();
    curl_setopt ($ch, CURLOPT_URL, 'http ://rest.delcampe.net/item/token/YOUR_TOKEN');
    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);
    $return = curl_exec($ch);

    echo $return;


    Fill free to paste you code here if you still get issues.
  • Konto gelöscht
    Konto gelöscht

    0 Beiträge

    Frankreich

    Die Informationen sind nicht mehr verfügbar, da das Konto dieses Benutzers gelöscht wird (DSGVO-Grundverordnung).
  • @dorian
    Administrator

    69 Beiträge

    Belgien

    Die Informationen sind nicht mehr verfügbar, da das Konto dieses Benutzers gelöscht wird (DSGVO-Grundverordnung).
    • Erstellt am 03.07.2017 um 11:46
    • #718387
    The forum is mistyping url's, hereby the picture of the working sample.
  • Konto gelöscht
    Konto gelöscht

    0 Beiträge

    Frankreich

    Die Informationen sind nicht mehr verfügbar, da das Konto dieses Benutzers gelöscht wird (DSGVO-Grundverordnung).
  • @dorian
    Administrator

    69 Beiträge

    Belgien

    Die Informationen sind nicht mehr verfügbar, da das Konto dieses Benutzers gelöscht wird (DSGVO-Grundverordnung).
    • Erstellt am 04.07.2017 um 04:40
    • #718687
    Seems you are defining $postData into a callback
    Route::any('test', function () {
    $postData = array(
    'type' => 'fixedPrice',
    'item' => array(
    // MANDATORY DATA
    'id_country' => 0,
    'id_category' => 80,
    'fixed_price' => '1.00',
    'currency' => 'EUR',
    'title' => 'My title',
    'personal_reference' => 'My personal ref',
    )
    );

    Are you sure that $postData is accessible in that part?
    curl_setopt ($ch, CURLOPT_POSTFIELDS, http_build_query($postData) );
  • Konto gelöscht
    Konto gelöscht

    0 Beiträge

    Frankreich

    Die Informationen sind nicht mehr verfügbar, da das Konto dieses Benutzers gelöscht wird (DSGVO-Grundverordnung).
  • Konto gelöscht
    Konto gelöscht

    0 Beiträge

    Frankreich

    Die Informationen sind nicht mehr verfügbar, da das Konto dieses Benutzers gelöscht wird (DSGVO-Grundverordnung).
  • Konto gelöscht
    Konto gelöscht

    0 Beiträge

    Frankreich

    Die Informationen sind nicht mehr verfügbar, da das Konto dieses Benutzers gelöscht wird (DSGVO-Grundverordnung).
  • @dorian
    Administrator

    69 Beiträge

    Belgien

    Die Informationen sind nicht mehr verfügbar, da das Konto dieses Benutzers gelöscht wird (DSGVO-Grundverordnung).
    • Erstellt am 05.07.2017 um 10:09
    • #719116
    Hello numiscollection-com,

    We executed your code on a laravel workspace and it works perfectly.
    (item inserted ; Link (https)

    It's seems to come from your environment., but we can't go further trough this.
    Could you try this in a stand-alone php script or on another server?

Werden Sie Mitglied der Sammler-Community!

Anmelden Einloggen