pl-api: support mitra follows export
Signed-off-by: Nicole Mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@@ -1637,6 +1637,32 @@ class PlApiClient {
|
||||
return response.json;
|
||||
},
|
||||
|
||||
/**
|
||||
* Export followers to CSV file
|
||||
*
|
||||
* Requires features{@link Features['exportFollowers']}.
|
||||
*/
|
||||
exportFollowers: async () => {
|
||||
const response = await this.request('/api/v1/settings/export_followers', {
|
||||
method: 'GET',
|
||||
});
|
||||
|
||||
return response.data;
|
||||
},
|
||||
|
||||
/**
|
||||
* Export follows to CSV file
|
||||
*
|
||||
* Requires features{@link Features['exportFollows']}.
|
||||
*/
|
||||
exportFollows: async () => {
|
||||
const response = await this.request('/api/v1/settings/export_follows', {
|
||||
method: 'GET',
|
||||
});
|
||||
|
||||
return response.data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates user notification settings
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user