Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Martin Griffiths 791 posts 1189 karma points c-trib
    Apr 24, 2014 @ 11:17
    Martin Griffiths
    1

    REST or /base services for contour?

    Hi Tim

    Are there any contour web services I can use to periodically draw down records from our Umbraco build from another server/site?

    Thanks Martin

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    May 08, 2014 @ 12:52
    Tim Geyssens
    0

    Nope but should be easy to create with a Web API controller

  • Martin Griffiths 791 posts 1189 karma points c-trib
    May 08, 2014 @ 12:54
    Martin Griffiths
    0

    So I wrap a contour API call with this?

    Never done it before, but there's always a first time!

    Thanks

    M.

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    May 08, 2014 @ 12:54
    Tim Geyssens
    1

    Yeah best would be to use code that is used for exporting entries,that will be fastest, will get you a code snippet

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    May 08, 2014 @ 13:02
    Tim Geyssens
    1

    This snippet would be the fastest way to get all records 

     RecordsViewer rv =newRecordsViewer();

                XmlDocument xs =newXmlDocument();

                XmlNode XmlRecords = rv.GetXmlRecords(form, xs);

     

                rv.Dispose();

    returning them in xml format

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies