Results 1 to 4 of 4

Thread: odata create new record

  1. #1
    Member
    Join Date
    Feb 2012
    Location
    São Paulo - Brasil
    Posts
    77

    odata create new record

    Hi,

    How I can create a new record using odata with node script running on another server?

    Regards,

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,974
    Blog Entries
    18
    Hi Jefferson,

    Read this article at the bottom it describes how to use odata with jQuery. You can see the format of the HTTPS POST request.

    https://www.lianja.com/doc/index.php...h_JSON_and_JQL

    Then see this link on how to use HTTPS POST with node.js

    https://stackoverflow.com/questions/...d-party-module
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  3. #3
    Member
    Join Date
    Feb 2012
    Location
    São Paulo - Brasil
    Posts
    77
    When I execute a request with POST return "the page requested not found", but work with GET.

  4. #4
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,974
    Blog Entries
    18
    Hi Jefferson,

    You can't just post data into a live system without an APIKEY.

    You need to specify that in your linux environment variables or in the server manager on windows.

    Then specify the APIKEY in the https headers.

    lianjaApiKey: APIKEY

    If you are still having issues enable debugging by settng DB_WWWDEBUG=true on your server. Then attach the debug files to a ticket not in the forums.
    Last edited by barrymavin; 2022-11-13 at 19:21.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us