Schimbări
On 24 mai 2023, 13:45:12 +0700,

-
Updated description of หมวดหมู่รายงานสถานการณ์การค้าในต่างประเทศ from
หมวดหมู่รายงานสถานการณ์การค้าในต่างประเทศ ตัวอย่างการใช้ curl command เพื่อเรียก graphql api (ต้องใช้ token นี้สำหรับข้อมูล public) <code> curl --request POST <br /> --header 'content-type: application/json' <br /> --header 'Authorization: Api-Key YqlvgTth.1PrBwB38knYz66vO1ULgaArg18DZmNsw' <br /> --url 'https://graphql.ditp.go.th/' <br /> --data '{"query":"query ExampleQuery($limit: Int!) {\n ditpWebsiteCategories(limit: $limit) {\n items {\n id\n count\n name\n description\n parent\n taxonomy\n }\n }\n}","variables":{"limit":20}}' </code>
toหมวดหมู่รายงานสถานการณ์การค้าในต่างประเทศ ตัวอย่างการใช้ curl command เพื่อเรียก graphql api (ต้องใช้ token นี้สำหรับข้อมูล public) <code> curl --request POST <br /> --header 'content-type: application/json' <br /> --header 'Authorization: Api-Key YqlvgTth.1PrBwB38knYz66vO1ULgaArg18DZmNsw' <br /> --url 'https://graphql.ditp.go.th/' <br /> --data '{"query":"query ExampleQuery($limit: Int!) {\n ditpWebsiteCategories(limit: $limit) {\n items {\n id\n count\n name\n description\n parent\n taxonomy\n }\n }\n}","variables":{"limit":20}}' -k </code>
f | 1 | { | f | 1 | { |
2 | "accessible_condition": "", | 2 | "accessible_condition": "", | ||
3 | "allow_harvest": "True", | 3 | "allow_harvest": "True", | ||
4 | "author": null, | 4 | "author": null, | ||
5 | "author_email": null, | 5 | "author_email": null, | ||
6 | "created_date": "2023-05-19", | 6 | "created_date": "2023-05-19", | ||
7 | "creator_user_id": "5e50267b-6f8c-4632-9487-64e1a12b7b8c", | 7 | "creator_user_id": "5e50267b-6f8c-4632-9487-64e1a12b7b8c", | ||
8 | "data_category": | 8 | "data_category": | ||
9 | 49\u0e2d\u0e21\u0e39\u0e25\u0e2a\u0e32\u0e18\u0e32\u0e23\u0e13\u0e30", | 9 | 49\u0e2d\u0e21\u0e39\u0e25\u0e2a\u0e32\u0e18\u0e32\u0e23\u0e13\u0e30", | ||
10 | "data_collect": "\u0e44\u0e21\u0e48\u0e21\u0e35", | 10 | "data_collect": "\u0e44\u0e21\u0e48\u0e21\u0e35", | ||
11 | "data_collect_other": "", | 11 | "data_collect_other": "", | ||
12 | "data_format": [ | 12 | "data_format": [ | ||
13 | "JSON", | 13 | "JSON", | ||
14 | "\u0e2d\u0e37\u0e48\u0e19\u0e46" | 14 | "\u0e2d\u0e37\u0e48\u0e19\u0e46" | ||
15 | ], | 15 | ], | ||
16 | "data_format_other": "graphql", | 16 | "data_format_other": "graphql", | ||
17 | "data_language": [ | 17 | "data_language": [ | ||
18 | "\u0e44\u0e17\u0e22", | 18 | "\u0e44\u0e17\u0e22", | ||
19 | "\u0e2d\u0e31\u0e07\u0e01\u0e24\u0e29" | 19 | "\u0e2d\u0e31\u0e07\u0e01\u0e24\u0e29" | ||
20 | ], | 20 | ], | ||
21 | "data_source": "\u0e23\u0e30\u0e1a\u0e1a ditp website", | 21 | "data_source": "\u0e23\u0e30\u0e1a\u0e1a ditp website", | ||
22 | "data_support": | 22 | "data_support": | ||
23 | 48\u0e27\u0e22\u0e07\u0e32\u0e19\u0e02\u0e2d\u0e07\u0e23\u0e31\u0e10", | 23 | 48\u0e27\u0e22\u0e07\u0e32\u0e19\u0e02\u0e2d\u0e07\u0e23\u0e31\u0e10", | ||
24 | "data_support_other": "", | 24 | "data_support_other": "", | ||
25 | "data_type": | 25 | "data_type": | ||
26 | 49\u0e2d\u0e21\u0e39\u0e25\u0e23\u0e30\u0e40\u0e1a\u0e35\u0e22\u0e19", | 26 | 49\u0e2d\u0e21\u0e39\u0e25\u0e23\u0e30\u0e40\u0e1a\u0e35\u0e22\u0e19", | ||
27 | "disaggregate": [], | 27 | "disaggregate": [], | ||
28 | "geo_coverage": "\u0e44\u0e21\u0e48\u0e21\u0e35", | 28 | "geo_coverage": "\u0e44\u0e21\u0e48\u0e21\u0e35", | ||
29 | "geo_coverage_other": "", | 29 | "geo_coverage_other": "", | ||
30 | "groups": [ | 30 | "groups": [ | ||
31 | { | 31 | { | ||
32 | "description": | 32 | "description": | ||
33 | 30\u0e2b\u0e27\u0e48\u0e32\u0e07\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28", | 33 | 30\u0e2b\u0e27\u0e48\u0e32\u0e07\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28", | ||
34 | "display_name": | 34 | "display_name": | ||
35 | 30\u0e2b\u0e27\u0e48\u0e32\u0e07\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28", | 35 | 30\u0e2b\u0e27\u0e48\u0e32\u0e07\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28", | ||
36 | "id": "d4b7b754-41d1-44f5-847c-b1ce8ef4be6b", | 36 | "id": "d4b7b754-41d1-44f5-847c-b1ce8ef4be6b", | ||
37 | "image_display_url": "", | 37 | "image_display_url": "", | ||
38 | "name": "news", | 38 | "name": "news", | ||
39 | "title": | 39 | "title": | ||
40 | e30\u0e2b\u0e27\u0e48\u0e32\u0e07\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28" | 40 | e30\u0e2b\u0e27\u0e48\u0e32\u0e07\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28" | ||
41 | } | 41 | } | ||
42 | ], | 42 | ], | ||
43 | "high_value_dataset": "", | 43 | "high_value_dataset": "", | ||
44 | "id": "efa12cdf-f18f-4172-8179-b05fcfc34a93", | 44 | "id": "efa12cdf-f18f-4172-8179-b05fcfc34a93", | ||
45 | "isopen": false, | 45 | "isopen": false, | ||
46 | "last_updated_date": "2023-05-19", | 46 | "last_updated_date": "2023-05-19", | ||
47 | "license_id": "Open Data Common", | 47 | "license_id": "Open Data Common", | ||
48 | "license_id_other": "", | 48 | "license_id_other": "", | ||
49 | "license_title": "Open Data Common", | 49 | "license_title": "Open Data Common", | ||
50 | "maintainer": | 50 | "maintainer": | ||
51 | 23\u0e41\u0e25\u0e30\u0e2a\u0e32\u0e23\u0e2a\u0e19\u0e40\u0e17\u0e28", | 51 | 23\u0e41\u0e25\u0e30\u0e2a\u0e32\u0e23\u0e2a\u0e19\u0e40\u0e17\u0e28", | ||
52 | "maintainer_email": "sys_dev@ditp.go.th", | 52 | "maintainer_email": "sys_dev@ditp.go.th", | ||
53 | "metadata_created": "2023-05-18T18:02:01.338628", | 53 | "metadata_created": "2023-05-18T18:02:01.338628", | ||
n | 54 | "metadata_modified": "2023-05-22T04:24:57.912055", | n | 54 | "metadata_modified": "2023-05-24T06:45:12.001625", |
55 | "name": "ditp_website_categories", | 55 | "name": "ditp_website_categories", | ||
56 | "notes": | 56 | "notes": | ||
57 | 0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49 | 57 | 0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49 | ||
58 | curl command | 58 | curl command | ||
59 | \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e40\u0e23\u0e35\u0e22\u0e01 graphql | 59 | \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e40\u0e23\u0e35\u0e22\u0e01 graphql | ||
60 | api (\u0e15\u0e49\u0e2d\u0e07\u0e43\u0e0a\u0e49 token | 60 | api (\u0e15\u0e49\u0e2d\u0e07\u0e43\u0e0a\u0e49 token | ||
61 | 0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 | 61 | 0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 | ||
62 | public)\r\n<code>\r\ncurl --request POST <br />\r\n --header | 62 | public)\r\n<code>\r\ncurl --request POST <br />\r\n --header | ||
63 | 'content-type: application/json' <br />\r\n --header | 63 | 'content-type: application/json' <br />\r\n --header | ||
64 | 'Authorization: Api-Key YqlvgTth.1PrBwB38knYz66vO1ULgaArg18DZmNsw' <br | 64 | 'Authorization: Api-Key YqlvgTth.1PrBwB38knYz66vO1ULgaArg18DZmNsw' <br | ||
65 | />\r\n --url 'https://graphql.ditp.go.th/' <br />\r\n --data | 65 | />\r\n --url 'https://graphql.ditp.go.th/' <br />\r\n --data | ||
66 | '{\"query\":\"query ExampleQuery($limit: Int!) {\\n | 66 | '{\"query\":\"query ExampleQuery($limit: Int!) {\\n | ||
67 | ditpWebsiteCategories(limit: $limit) {\\n items {\\n id\\n | 67 | ditpWebsiteCategories(limit: $limit) {\\n items {\\n id\\n | ||
68 | count\\n name\\n description\\n parent\\n | 68 | count\\n name\\n description\\n parent\\n | ||
t | 69 | taxonomy\\n }\\n | t | 69 | taxonomy\\n }\\n }\\n}\",\"variables\":{\"limit\":20}}' |
70 | }\\n}\",\"variables\":{\"limit\":20}}'\r\n</code>", | 70 | -k\r\n</code>", | ||
71 | "num_resources": 1, | 71 | "num_resources": 1, | ||
72 | "num_tags": 2, | 72 | "num_tags": 2, | ||
73 | "objective": [ | 73 | "objective": [ | ||
74 | 74 | ||||
75 | 17\u0e18\u0e28\u0e32\u0e2a\u0e15\u0e23\u0e4c\u0e0a\u0e32\u0e15\u0e34", | 75 | 17\u0e18\u0e28\u0e32\u0e2a\u0e15\u0e23\u0e4c\u0e0a\u0e32\u0e15\u0e34", | ||
76 | 76 | ||||
77 | 23\u0e34\u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e0a\u0e32\u0e0a\u0e19", | 77 | 23\u0e34\u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e0a\u0e32\u0e0a\u0e19", | ||
78 | 78 | ||||
79 | e18\u0e01\u0e34\u0e08\u0e2b\u0e19\u0e48\u0e27\u0e22\u0e07\u0e32\u0e19" | 79 | e18\u0e01\u0e34\u0e08\u0e2b\u0e19\u0e48\u0e27\u0e22\u0e07\u0e32\u0e19" | ||
80 | ], | 80 | ], | ||
81 | "organization": { | 81 | "organization": { | ||
82 | "approval_status": "approved", | 82 | "approval_status": "approved", | ||
83 | "created": "2021-08-06T06:58:55.178725", | 83 | "created": "2021-08-06T06:58:55.178725", | ||
84 | "description": | 84 | "description": | ||
85 | 0e30\u0e2b\u0e27\u0e48\u0e32\u0e07\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28 | 85 | 0e30\u0e2b\u0e27\u0e48\u0e32\u0e07\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28 | ||
86 | 0e16\u0e36\u0e07\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e07\u0e32\u0e19 | 86 | 0e16\u0e36\u0e07\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e07\u0e32\u0e19 | ||
87 | 0e34\u0e21\u0e01\u0e32\u0e23\u0e04\u0e49\u0e32\u0e15\u0e48\u0e32\u0e07 | 87 | 0e34\u0e21\u0e01\u0e32\u0e23\u0e04\u0e49\u0e32\u0e15\u0e48\u0e32\u0e07 | ||
88 | \u0e46 | 88 | \u0e46 | ||
89 | 0e08\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e04\u0e49\u0e19\u0e2b\u0e32 | 89 | 0e08\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e04\u0e49\u0e19\u0e2b\u0e32 | ||
90 | 0e2d\u0e1a\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14 | 90 | 0e2d\u0e1a\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14 | ||
91 | 40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21\u0e44\u0e14\u0e49", | 91 | 40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21\u0e44\u0e14\u0e49", | ||
92 | "id": "68041f91-611a-47e3-b9c8-5c3b2f30886e", | 92 | "id": "68041f91-611a-47e3-b9c8-5c3b2f30886e", | ||
93 | "image_url": "2021-08-06-065854.801522ditp.png", | 93 | "image_url": "2021-08-06-065854.801522ditp.png", | ||
94 | "is_organization": true, | 94 | "is_organization": true, | ||
95 | "name": "ditp", | 95 | "name": "ditp", | ||
96 | "state": "active", | 96 | "state": "active", | ||
97 | "title": | 97 | "title": | ||
98 | 30\u0e2b\u0e27\u0e48\u0e32\u0e07\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28", | 98 | 30\u0e2b\u0e27\u0e48\u0e32\u0e07\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28", | ||
99 | "type": "organization" | 99 | "type": "organization" | ||
100 | }, | 100 | }, | ||
101 | "owner_org": "68041f91-611a-47e3-b9c8-5c3b2f30886e", | 101 | "owner_org": "68041f91-611a-47e3-b9c8-5c3b2f30886e", | ||
102 | "private": false, | 102 | "private": false, | ||
103 | "reference_data": "", | 103 | "reference_data": "", | ||
104 | "relationships_as_object": [], | 104 | "relationships_as_object": [], | ||
105 | "relationships_as_subject": [], | 105 | "relationships_as_subject": [], | ||
106 | "resources": [ | 106 | "resources": [ | ||
107 | { | 107 | { | ||
108 | "cache_last_updated": null, | 108 | "cache_last_updated": null, | ||
109 | "cache_url": null, | 109 | "cache_url": null, | ||
110 | "created": "2023-05-18T18:06:18.387880", | 110 | "created": "2023-05-18T18:06:18.387880", | ||
111 | "created_at": "2023-05-18T18:06:18.387880", | 111 | "created_at": "2023-05-18T18:06:18.387880", | ||
112 | "datastore_active": false, | 112 | "datastore_active": false, | ||
113 | "datastore_contains_all_records_of_source_file": false, | 113 | "datastore_contains_all_records_of_source_file": false, | ||
114 | "description": | 114 | "description": | ||
115 | 0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49 | 115 | 0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49 | ||
116 | curl command | 116 | curl command | ||
117 | \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e40\u0e23\u0e35\u0e22\u0e01 graphql | 117 | \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e40\u0e23\u0e35\u0e22\u0e01 graphql | ||
118 | api (\u0e15\u0e49\u0e2d\u0e07\u0e43\u0e0a\u0e49 token | 118 | api (\u0e15\u0e49\u0e2d\u0e07\u0e43\u0e0a\u0e49 token | ||
119 | 0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 | 119 | 0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 | ||
120 | public) \r\n<code>\r\nToken: Api-Key | 120 | public) \r\n<code>\r\nToken: Api-Key | ||
121 | YqlvgTth.1PrBwB38knYz66vO1ULgaArg18DZmNsw\r\n<code>\r\n<code>\r\ncurl | 121 | YqlvgTth.1PrBwB38knYz66vO1ULgaArg18DZmNsw\r\n<code>\r\n<code>\r\ncurl | ||
122 | --request POST <br />\r\n --header 'content-type: application/json' | 122 | --request POST <br />\r\n --header 'content-type: application/json' | ||
123 | <br />\r\n --header 'Authorization: Api-Key | 123 | <br />\r\n --header 'Authorization: Api-Key | ||
124 | YqlvgTth.1PrBwB38knYz66vO1ULgaArg18DZmNsw' <br />\r\n --url | 124 | YqlvgTth.1PrBwB38knYz66vO1ULgaArg18DZmNsw' <br />\r\n --url | ||
125 | 'https://graphql.ditp.go.th/' <br />\r\n --data '{\"query\":\"query | 125 | 'https://graphql.ditp.go.th/' <br />\r\n --data '{\"query\":\"query | ||
126 | ExampleQuery($limit: Int!) {\\n ditpWebsiteCategories(limit: $limit) | 126 | ExampleQuery($limit: Int!) {\\n ditpWebsiteCategories(limit: $limit) | ||
127 | {\\n items {\\n id\\n count\\n name\\n | 127 | {\\n items {\\n id\\n count\\n name\\n | ||
128 | description\\n parent\\n taxonomy\\n }\\n | 128 | description\\n parent\\n taxonomy\\n }\\n | ||
129 | }\\n}\",\"variables\":{\"limit\":20}}'\r\n</code>", | 129 | }\\n}\",\"variables\":{\"limit\":20}}'\r\n</code>", | ||
130 | "format": "graphql", | 130 | "format": "graphql", | ||
131 | "hash": "", | 131 | "hash": "", | ||
132 | "id": "5525d2be-a9ff-448c-b995-4ebc6291c1ad", | 132 | "id": "5525d2be-a9ff-448c-b995-4ebc6291c1ad", | ||
133 | "last_modified": null, | 133 | "last_modified": null, | ||
134 | "metadata_modified": "2023-05-22T04:24:57.920483", | 134 | "metadata_modified": "2023-05-22T04:24:57.920483", | ||
135 | "mimetype": null, | 135 | "mimetype": null, | ||
136 | "mimetype_inner": null, | 136 | "mimetype_inner": null, | ||
137 | "name": | 137 | "name": | ||
138 | 0e30\u0e2b\u0e27\u0e48\u0e32\u0e07\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28 | 138 | 0e30\u0e2b\u0e27\u0e48\u0e32\u0e07\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28 | ||
139 | ", | 139 | ", | ||
140 | "package_id": "efa12cdf-f18f-4172-8179-b05fcfc34a93", | 140 | "package_id": "efa12cdf-f18f-4172-8179-b05fcfc34a93", | ||
141 | "position": 0, | 141 | "position": 0, | ||
142 | "resource_accessible_condition": "", | 142 | "resource_accessible_condition": "", | ||
143 | "resource_data_collect": "", | 143 | "resource_data_collect": "", | ||
144 | "resource_data_collect_other": "", | 144 | "resource_data_collect_other": "", | ||
145 | "resource_disaggregate": [], | 145 | "resource_disaggregate": [], | ||
146 | "resource_type": null, | 146 | "resource_type": null, | ||
147 | "size": null, | 147 | "size": null, | ||
148 | "state": "active", | 148 | "state": "active", | ||
149 | "url": "https://graphql.ditp.go.th/", | 149 | "url": "https://graphql.ditp.go.th/", | ||
150 | "url_type": null | 150 | "url_type": null | ||
151 | } | 151 | } | ||
152 | ], | 152 | ], | ||
153 | "state": "active", | 153 | "state": "active", | ||
154 | "tags": [ | 154 | "tags": [ | ||
155 | { | 155 | { | ||
156 | "display_name": "\u0e02\u0e48\u0e32\u0e27", | 156 | "display_name": "\u0e02\u0e48\u0e32\u0e27", | ||
157 | "id": "0140b868-32bd-4be8-8a4f-de2faa1bfc95", | 157 | "id": "0140b868-32bd-4be8-8a4f-de2faa1bfc95", | ||
158 | "name": "\u0e02\u0e48\u0e32\u0e27", | 158 | "name": "\u0e02\u0e48\u0e32\u0e27", | ||
159 | "state": "active", | 159 | "state": "active", | ||
160 | "vocabulary_id": null | 160 | "vocabulary_id": null | ||
161 | }, | 161 | }, | ||
162 | { | 162 | { | ||
163 | "display_name": | 163 | "display_name": | ||
164 | "\u0e2b\u0e21\u0e27\u0e14\u0e2b\u0e21\u0e39\u0e48", | 164 | "\u0e2b\u0e21\u0e27\u0e14\u0e2b\u0e21\u0e39\u0e48", | ||
165 | "id": "6cf7bc44-89d4-418d-8818-cb99d7332620", | 165 | "id": "6cf7bc44-89d4-418d-8818-cb99d7332620", | ||
166 | "name": "\u0e2b\u0e21\u0e27\u0e14\u0e2b\u0e21\u0e39\u0e48", | 166 | "name": "\u0e2b\u0e21\u0e27\u0e14\u0e2b\u0e21\u0e39\u0e48", | ||
167 | "state": "active", | 167 | "state": "active", | ||
168 | "vocabulary_id": null | 168 | "vocabulary_id": null | ||
169 | } | 169 | } | ||
170 | ], | 170 | ], | ||
171 | "title": | 171 | "title": | ||
172 | 43\u0e19\u0e15\u0e48\u0e32\u0e07\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28", | 172 | 43\u0e19\u0e15\u0e48\u0e32\u0e07\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28", | ||
173 | "type": "dataset", | 173 | "type": "dataset", | ||
174 | "update_frequency_interval": "1", | 174 | "update_frequency_interval": "1", | ||
175 | "update_frequency_unit": "\u0e1b\u0e35", | 175 | "update_frequency_unit": "\u0e1b\u0e35", | ||
176 | "update_frequency_unit_other": "", | 176 | "update_frequency_unit_other": "", | ||
177 | "url": "https://graphql.ditp.go.th/", | 177 | "url": "https://graphql.ditp.go.th/", | ||
178 | "version": null | 178 | "version": null | ||
179 | } | 179 | } |