postFollowAdd method
关注用户
userId
- 用户ID
restrict
为ture获取公开的(public) 反之不公开(private)
Implementation
Future<String> postFollowAdd(
int userId, {
Restrict restrict = Restrict.public,
}) async {
return _httpClient
.post<String>(
'/v1/user/follow/add',
data: FormData.fromMap(
{
'user_id': userId,
'restrict': restrict.toPixivStringParameter(),
},
),
)
.then((response) => response.data!);
}