Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
titleLogin işlemleri ile birlikte
linenumberstrue
  <SetVariable Name="$(LoginURL)">
    <StringConcat>
      <Value Culture="" Target="None">$(APIURL)</Value>
      <Value Culture="" Target="None">auth/oauth2/token</Value>
    </StringConcat>
  </SetVariable>
  <Set Node="DYSAPI/Login/Request">
    <StringConcat>
      <Value Culture="" Target="None" IsCDATA="True"><![CDATA[username=]]></Value>
      <Value Culture="" Target="None">$(APIUser)</Value>
      <Value Culture="" Target="None" IsCDATA="True"><![CDATA[&password=]]></Value>
      <Value Culture="" Target="None">$(APIPassword)</Value>
      <Value Culture="" Target="None" IsCDATA="True"><![CDATA[&grant_type=password&client_id=]]></Value>
      <Value Culture="" Target="None">099153c2625149bc8ecb3e85e03f0022</Value>
    </StringConcat>
  </Set>
  <JsonInvoke Url="$(LoginURL)" InvokeType="Post" RequestNode="API/Login/Request" ResponseNode="API/Login/Result" ClearInto="False" IsHeadersEncoded="False" IsSerialize="False" Timeout="100" ContentType="application/x-www-form-urlencoded" Accept="text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" IsResultJson="True">
    <Headers />
  </JsonInvoke>

Örnek Kullanımı

Image Added

 

 

Info
titleSisteme dahil olmayan ITASK için Dll üzerinden çağırma

<Using Name="JsonInvoke" Type="EBI.ExtraFunctions.JsonInvoke,EBI.ExtraFunctions" />

...