Bitte um eine aktualisierte Doku für C#

  • janniksinger
    Gefragt am 17. Januar 2024 um 04:45

    Guten Tag,

    ich versuche aktuell Ihre API einzubinden, um die Formulare zu testen, leider ist der Stand Ihrer Dokumentation und der Stand des NuGet Paketes nicht übereinstimmend.

    Können Sie das bitte aktualisieren?

  • Lorenz Jotform Support
    Geantwortet am 17. Januar 2024 um 07:22

    Hi Jannik,

    Thanks for reaching out to Jotform Support. Unfortunately, our German Support agents are busy helping other Jotform users at the moment. I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in German, let us know and we can have them do that. But, keep in mind that you'd have to wait until they're available again. 

    With that said, can you explain a bit more about the issue? Could you take a screenshot of what you're referring to? We have a guide about that here. I'm not exactly sure what you mean by NuGet Package, can you provide more details about that?

    Once we hear back from you, we'll be able to help you with this.

  • janniksinger
    Geantwortet am 17. Januar 2024 um 08:45

    Hey Lorenz,

    English is good for me :)

    so my problem is:

    I want to implement your API and use your documentation for that.

    The documentation told me that I can implement the "Jotform.ApiKey" Method like that

    GitHub - jotform/jotform-api-csharp: Jotform API - C# Client:

    Bitte um eine aktualisierte Doku für C# Image 1 Screenshot 40

    And if I want to call this method, my compiler throws an error because he can't find this call

    Bitte um eine aktualisierte Doku für C# Image 2 Screenshot 51

    I'm using the newest NuGet:

    Bitte um eine aktualisierte Doku für C# Image 3 Screenshot 62

    The last update to the C# documentation was 2 years ago, and the last NuGet update was last year.

    It looks like the Method call changed. Could you update the documentation for my team?

    Thanks for your help!

  • KrisLei Jotform Support
    Geantwortet am 17. Januar 2024 um 12:04

    Hello Jannik,

    Thank you for getting back to us and for the additional information you have provided. I have checked our developer's API documentation and can see that it is updated on Github:

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Jotform;
    using Newtonsoft.Json;
    using Newtonsoft.Json.Linq;

    namespace JotFormTest
    {
        class PrintFormList
        {
            static void Main(string[] args)
            {
                var client = new JotForm.APIClient("YOUR API KEY");
                // If your account is in Eu Protected mode, set euProtected to true.
                // client.euProtected = false;
                var forms = client.getForms()["content"];
                var formTitles = from form in forms
                                 select form.Value<string>("title");
                foreach (var item in formTitles)
                {
                    Console.Out.WriteLine(item);
                }
                Console.ReadLine();
            }
        }
    }

    You can find our API Libraries here. Also, please note that you have imported all the necessary files as shown on the document, or the following:

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Jotform;
    using Newtonsoft.Json;
    using Newtonsoft.Json.Linq;

    I apologize, but I am not familiar with the NuGet platform. You may want to contact their support team to verify the error you are experiencing. If you need more information from us, please let us know and we will be happy to assist you.