Skip to content

Schimbări

View changes from to


On 22 mai 2023, 09:56:08 +0700, ditp-admin ditp-admin:
  • Updated description of resource หมวดหมู่ข่าวการค้าระหว่างประเทศ in หมวดหมู่รายงานสถานการณ์การค้าในต่างประเทศ from

    ตัวอย่างการใช้ curl command เพื่อเรียก graphql api (ต้องใช้ token นี้สำหรับข้อมูล public) <code> Token: Api-Key YqlvgTth.1PrBwB38knYz66vO1ULgaArg18DZmNsw <code> <code> sh curl --request POST \ --header 'content-type: application/json' \ --header 'Authorization: Api-Key YqlvgTth.1PrBwB38knYz66vO1ULgaArg18DZmNsw' \ --url 'https://graphql.ditp.go.th/' \ --data '{"query":"query DitpWebsiteCategories($limit: Int!) {\n ditpWebsiteCategories(limit: $limit) {\n totalItemsCount\n items {\n id\n count\n description\n link\n name\n slug\n taxonomy\n parent\n linksSelf0Href\n linksCollection0Href\n linksAbout0Href\n linksWpPostType0Href\n linksWpPostType1Href\n linksWpPostType2Href\n linksWpPostType3Href\n linksWpPostType4Href\n linksWpPostType5Href\n linksWpPostType6Href\n linksWpPostType7Href\n linksWpPostType8Href\n linksWpPostType9Href\n linksCuries0Name\n linksCuries0Href\n linksCuries0Templated\n linksUp0Embeddable\n linksUp0Href\n }\n }\n}","variables":{"limit":20}}' -k </code>
    to
    ตัวอย่างการใช้ curl command เพื่อเรียก graphql api (ต้องใช้ token นี้สำหรับข้อมูล public) <code> Token: Api-Key YqlvgTth.1PrBwB38knYz66vO1ULgaArg18DZmNsw <code> <code> sh curl --request POST <br /> --header 'content-type: application/json' \ --header 'Authorization: Api-Key YqlvgTth.1PrBwB38knYz66vO1ULgaArg18DZmNsw' \ --url 'https://graphql.ditp.go.th/' \ --data '{"query":"query DitpWebsiteCategories($limit: Int!) {\n ditpWebsiteCategories(limit: $limit) {\n totalItemsCount\n items {\n id\n count\n description\n link\n name\n slug\n taxonomy\n parent\n linksSelf0Href\n linksCollection0Href\n linksAbout0Href\n linksWpPostType0Href\n linksWpPostType1Href\n linksWpPostType2Href\n linksWpPostType3Href\n linksWpPostType4Href\n linksWpPostType5Href\n linksWpPostType6Href\n linksWpPostType7Href\n linksWpPostType8Href\n linksWpPostType9Href\n linksCuries0Name\n linksCuries0Href\n linksCuries0Templated\n linksUp0Embeddable\n linksUp0Href\n }\n }\n}","variables":{"limit":20}}' -k </code>