بازگشت به بالا 

Turkishexportal برای توسعه دهندگان

API - بستر توسعهدهنده

یک برنامه قدرتمند با Turkishexportal ایجاد کنید.

The API provides the site members with the ability to access and manipulate the desired data from the platform. The API functions provide an infrastructure that can be easily implemented between any application or website and Turkishexportal . Many of the actions that members perform on the site, such as company update, add / modify / delete products, add / change / delete news and references, read / reply / delete messages, visitor reports are also available to users via API . API accepts requests in the form REST and accepts multiple respond

Some information about using the API ;

    For any issues with API , you can contact us at info@turkishexportal.com .

    مفاهیم اساسی

    The Basics Concepts page's API requirements are important to include error codes, general information, etc. We recommend starting with this section for the API . In the next stage, you can see the here methods you can use on the API . Finally, you should get a access code to integrate your API into your application.

    درخواست ها

      پاسخ

        پیمایش

        This allows the data to be sent in handleable sizes for requests that list count , page and current parameters. Things to consider in lists;

    انواع پاسخ

    Turkishexportal API can send responses in 2 different formats;

      How to Determine the Response Type

      The type of response to be received is provided by the format parameter in the submitted request. When this parameter is not sent, the response is returned as standard JSON type. If you want to change it, you can specify the response type for each request by adding the format = xml or format = json parameter.

      XML

      XML responses are in a special XML format specified by Turkishexportal.

      https://www.turkishexportal.com/api/1.0/company/select?key=123&type=xml

      Sample request - Truncated

      <?xml version="1.0"?>
      <Company xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
        <accountype>F</accountype>
        <active>Y</active>
        <alias>test</alias>
        <businesstype>01</businesstype>
        <communication>
          <address1>Ahmet Sokak. Aykon Apt.</address1>
      	.
      	.
      	.
      </Company>
      

      JSON

      JSON ( JavaScript Object Notation , json.org ) is a simple and useful data declaration format. It is used extensively in Ajax applications, especially those used within the browser.

      https://www.turkishexportal.com/api/1.0/company/select?key=123&type=json

      Sample request - Truncated

      {
          "accountype":"F",
          "active":"Y",
          "alias":"test",
          "businesstype":"01",
          "communication":{  
              "address1":"Ahmet Sokak. Aykon Apt.",    
          .
          .
          }
      }
      

    مولفه های

    The parameters in this page are also used from time to time in definitions in the portal.

    نام کد شرح
    TL 04 دستیار صادرات و مدیر فروش
    05 دستیار مدیر صادرات
    06 معاون مدیر کل
    10 دستیار مدیر فروش
    100
    101 مدیر کل
    103 دستیار بازاریابی بین المللی
    104 مدیر بازاریابی بین المللی
    109 مدیر فروش بین المللی
    116 مدیر
    118 مدیر عامل
    123 بازاریابی و فروش نماینده
    128 مدیر بازاریابی
    129 نماینده بازاریابی
    13 مدیر توسعه کسب و کار
    139 مالک
    14 متخصص توسعه کسب و کار
    143 شریک
    160 نماینده
    161 فروش و صادرات مدیرعامل
    162 فروش و مدیر صادرات
    164 مدیر فروش و بازاریابی
    17 مدیر عامل
    170 مدیر فروش
    171 نماینده فروش
    35 مدیر
    36 مدیر توسعه کسب و کار
    37 مدیر صادرات و واردات
    38 مدیر فروش و حمل و نقل
    46 صادرات و واردات دستیار
    48 صادرات و واردات مدیریت
    49 نماینده صادرات و واردات
    62 صادرات مدیرعامل
    65 مدیر صادرات
    69 نماینده صادرات
    72 نماینده فروش صادرات
    82 مدیر فروش خارجی
    83 نماینده فروش خارجی
    92 مدیر بازرگانی خارجی
    95 نماینده تجارت خارجی
    98 موسس / مدیر
    99
    نام کد شرح
    ER 01 1 -10
    02 10 - 50
    03 50 - 100
    04 100-250
    05 > 250

    کد دسترسی

    All access should be sent in the all requests apikey field via the Turkishexport API . Please keep your access code in a safe place. Keep in mind that your data security will be compromised if you have the code provided within your membership. In such cases, you must ensure that your code is canceled by contacting info@turkishexportal.com via email. A sample request with API Access Code is shown below.

    https://www.turkishexportal.com/api/1.0/company/select?format=xml&apikey=f893a3bf3cfc432a8e304f07e5ea11f5

    The apikey used in the above example is not a valid access code. It is given only in terms of being an example. Please use the apikey API Access Code assigned specifically to you in your own application.

    فهرست روش

    Company

    Update
    رشته شرح تایپ کنید
    name نام شرکت وارچار [100]
    <?xml version="1.0"?>
    <Company xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <uid>33d27f2c6ed0403f98ab0219e3fec20e</uid>
      <name>Test Co Ltd.</name>
      <history>Test is the company that provides the best product.</history>
      <email>info@test.com</email>
      <mf>M</mf>
      <representative>Test Person</representative>
      <establishdate>1965</establishdate>
      <businesstype>01</businesstype>
      <statistic>
        <itemscount>4</itemscount>
        <newscount>1</newscount>
        <referencecount>1</referencecount>
        <certificatecount>2</certificatecount>
      </statistic>
    </Company>

    لیست خطا

    کد شرح
    100 هیچ رکورد یافت نشد
    110 لطفا فیلدهای نامعتبر را بررسی کنید.
    255 خطا رخ داد.

    اعدام کد