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