API Returns Nothing

  • Account eliminato
    Account eliminato

    0 messaggi

    Stati Uniti

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

    348 messaggi

    Belgio

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

    You should print the xml variable to see the response information.

    In your example I think 'Delcampe_Notification' is missing:
    $token = $xml->Delcampe_Notification->Notification_Data->body->token;

    Best Regards,
    --
    Thomas
    Delcampe Team
  • Account eliminato
    Account eliminato

    0 messaggi

    Stati Uniti

    Hello postroadcompany,

    You should print the xml variable to see the response information.

    In your example I think 'Delcampe_Notification' is missing:
    $token = $xml->Delcampe_Notification->Notification_Data->body->token;

    Best Regards,
    --
    Thomas
    Delcampe Team
    Le informazioni non sono più disponibili perché l'account di questo utente è stato eliminato (Regolamento RGPD).
  • @thomas
    Amministratore

    348 messaggi

    Belgio

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

    This code should work and retrieve the token:
    $token = (string) $xml->Notification_Data->body->token;

    I just tested it on my side and it works.

    Kind Regards,
    --
    Thomas
    Delcampe Team
  • Account eliminato
    Account eliminato

    0 messaggi

    Stati Uniti

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

    0 messaggi

    Stati Uniti

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

    348 messaggi

    Belgio

    Le informazioni non sono più disponibili perché l'account di questo utente è stato eliminato (Regolamento RGPD).
    Did you try to cast the token as a string like I showed you in the example?

    The variable '$token' should be a SimpleXMLElement object. This object can be returned as a string by casting it.
  • Account eliminato
    Account eliminato

    0 messaggi

    Stati Uniti

    Did you try to cast the token as a string like I showed you in the example?

    The variable '$token' should be a SimpleXMLElement object. This object can be returned as a string by casting it.
    Le informazioni non sono più disponibili perché l'account di questo utente è stato eliminato (Regolamento RGPD).

Unisciti alla community di collezionisti!

Registrati Login