協會的公開資料:品牌形象、會員卡類型、現行章程
const url = 'https://api.vimine.network/v1/aps/example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.vimine.network/v1/aps/example適用於已開放公開入會或已開通 API 的協會。章程依法公開(RUNTS)。
參數
章節「參數」路徑參數
章節「路徑參數」協會的公開入會 slug
查詢參數
章節「查詢參數」讀取協會文案所用的語言(it、en);預設依次為 Accept-Language、協會的語言。回應中的 locale 說明實際傳回的是哪種語言,locales 說明協會提供哪些語言。章程是一份法律文書:永遠不會被翻譯
回應
章節「回應」200
章節「200」公開資料
object
此回應所用的語言
協會提供的語言:其自身的語言,以及其啟用的語言
object
此刻是否能受理入會申請:入會已開啟、方案還能再容納一位會員、協會已準備好收集申請,且其公開入口處於開放狀態。
當 Vimine 只憑邀請接受個人註冊(內測),且本協會只接納其邀請的人時為 true:此時 accepting_requests 為 false,POST /v1/enroll 傳回 403 not_available。
沙箱時為 true:即供測試用戶端使用的協會測試副本,其中只有虛構會員。它從不傳送電子郵件、不收取任何付款,也絕不屬於 Vimine 網路。
協會如何接納會員,以便事先告知申請人預期結果。model:board——申請等待協會理事會的決定,任何會費都在決定之後繳納;provisional——立即臨時入會,之後由理事會追認;automatic——條件一滿足即生效。delay_hours:從獲准入會到會員卡真正可以使用之間的小時數(0 = 立即):會員資格自獲准入會起即生效,但會員卡要在此之後才能在入場時算數(參見 valid_from)。
object
為相容而保留:當 admission.model 為 board 時為 true。請改為讀取 admission。
協會是否收集會員地址——要麼收集所有會員的地址,要麼一律不收集。none:不要詢問(即使傳送了 address 也不會儲存);optional;required:缺少地址時,入會傳回 422。
如何繳納會費,按協會的表述
協會開展的公共利益活動(義大利《第三部門法典》第 5 條):cod 是該條中的字母編號,description 是其義大利語表述;其中一項標記為主要活動。
object
協會已在 RUNTS(義大利第三部門機構全國登記冊)登記時提供,由平臺根據官方公開名單核對;否則為 null。絕不由協會自行填寫。
object
登記冊中的類別
登記編號
核對所依據的官方名單的日期
object
範例
{ "aps": { "admission": { "model": "board" }, "member_address": "none", "registry": { "section": "APS" } }, "membership_types": [ { "expiry_model": "solar_year" } ]}400
章節「400」請求無效
object
object
範例自動產生
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "code": "example", "request_id": "example", "errors": [ { "field": "example", "code": "example", "message": "example" } ]}404
章節「404」找不到
object
object
範例自動產生
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "code": "example", "request_id": "example", "errors": [ { "field": "example", "code": "example", "message": "example" } ]}429
章節「429」超出速率限制
object
object
範例自動產生
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "code": "example", "request_id": "example", "errors": [ { "field": "example", "code": "example", "message": "example" } ]}500
章節「500」內部錯誤
object
object
範例自動產生
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "code": "example", "request_id": "example", "errors": [ { "field": "example", "code": "example", "message": "example" } ]}