4 Replies Latest reply on Nov 24, 2015 7:52 AM by beverly

    Insert url script step

    Nehme

      Hello,

       

      This might be a basic question:

      When we use the script step: Insert url

      Which language will we be using out there?

      .NET

      Java

      JavaScript

      Node.js

      PHP

      Python

      Ruby

      or any other

       

      Thank you

        • 1. Re: Insert url script step
          jbante

          I'm not entirely sure what the question is. Are you asking what language is getting used by the server on the receiving end of the URL request? If that's what you're asking, the Insert From URL script step doesn't care.

          • 2. Re: Insert url script step
            Nehme

            What I want to do is use insert url for APIs

            Each API based website has its own link to use

             

            And those websites usually give examples for each language

            After doing some trials (using the wxamples that they give), I manage to figure out the link

            • 3. Re: Insert url script step
              jbante

              What you're looking for in API documentation is what the resulting URL looks like, instead of the terms each languages uses to generate it. If the API documentation includes it, the documentation for cURL is the best place to start because it exposes the URL you'd need to make in FileMaker the most directly.

              • 4. Re: Insert url script step
                beverly

                APIs may return different kinds of TEXT:

                * HTML

                * XML

                * JSON

                * CSV

                ....

                The underlying application used doesn't matter, but the results (if needed to be processed for consumption by FM) depends on what's available and how you are able to process. FM eats TEXT for breakfast. LOL

                 

                Heed jbante's advice and get the API documentation to learn your options for sending and receiving. Some may require secure connections & authenticated access. Some may require a cycle of: request-response-request-result and a single URL may not work, so a plug-in or other means external to FM would be employed.

                beverly