Added GET /api/v1/endorsements, POST /api/v1/accounts/:id/pin, POST /api/v1/accounts/:id/unpin
This commit is contained in:
parent
ad7ac09ae1
commit
22c217d3da
|
@ -144,6 +144,9 @@ const uint_fast16_t API::get(const Mastodon::API::v1 &call,
|
|||
case v1::push_subscription:
|
||||
strcall = "/api/v1/push/subscription";
|
||||
break;
|
||||
case v1::endorsements:
|
||||
strcall = "/api/v1/endorsements";
|
||||
break;
|
||||
default:
|
||||
ttdebug << "ERROR: Invalid call.\n";
|
||||
return 11;
|
||||
|
|
|
@ -116,6 +116,12 @@ const uint_fast16_t API::post(const Mastodon::API::v1 &call,
|
|||
case v1::push_subscription:
|
||||
strcall = "/api/v1/push/subscription";
|
||||
break;
|
||||
case v1::accounts_id_pin:
|
||||
strcall = "/api/v1/accounts/" + strid + "/pin";
|
||||
break;
|
||||
case v1::accounts_id_unpin:
|
||||
strcall = "/api/v1/accounts/" + strid + "/unpin";
|
||||
break;
|
||||
default:
|
||||
ttdebug << "ERROR: Invalid call.\n";
|
||||
return 11;
|
||||
|
|
|
@ -206,6 +206,7 @@ public:
|
|||
accounts_search,
|
||||
blocks,
|
||||
domain_blocks,
|
||||
endorsements,
|
||||
favourites,
|
||||
follow_requests,
|
||||
instance,
|
||||
|
@ -237,6 +238,8 @@ public:
|
|||
accounts_id_unblock,
|
||||
accounts_id_mute,
|
||||
accounts_id_unmute,
|
||||
accounts_id_pin,
|
||||
accounts_id_unpin,
|
||||
apps,
|
||||
follow_requests_id_authorize,
|
||||
follow_requests_id_reject,
|
||||
|
|
Reference in New Issue