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