协会的公开资料:品牌形象、会员卡类型、现行章程
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" } ]}