ጠንካራ የጠያቂ ድጋፍ ባለው የድር ኤፒአይ በመጠቀም መረጃ ያግኙ።. ለበለጠ መረጃ የ CKAN የመረጃ ኤፒአይ እና የመረጃ ማከማቻ መግለጫ ሰነድ.
የመረጃው ኤፒአይ በሚከተሉት የ CKAN ኤፒአይ ድርጊት ሂደቶች ማግኝት ይችላሉ።
ፍጠር | https://data.mhesi.go.th/am/api/3/action/datastore_create |
---|---|
አሻሽል / አስገባ | https://data.mhesi.go.th/am/api/3/action/datastore_upsert |
መጠይቅ | https://data.mhesi.go.th/am/api/3/action/datastore_search |
jQuery በመጠቀም ወደ መረጃ ኤፒአይ ቀላል የአጃክስ (JSONP) ጥያቄ
var data = { resource_id: '5574b1df-d86c-4214-b9c1-189c92d04ce9', // the resource id limit: 5, // get 5 results q: 'jones' // query for 'jones' }; $.ajax({ url: 'https://data.mhesi.go.th/am/api/3/action/datastore_search', data: data, dataType: 'jsonp', success: function(data) { alert('Total results found: ' + data.result.total) } });
import urllib url = 'https://data.mhesi.go.th/am/api/3/action/datastore_search?limit=5&resource_id=5574b1df-d86c-4214-b9c1-189c92d04ce9&q=title:jones' fileobj = urllib.urlopen(url) print fileobj.read()