FollowerApi class

A class to handle API interactions related to followers (Le Rezo). Note: Follower endpoints use follower-specific authentication, not user API key.

Constructors

FollowerApi({required Dio dio, required String baseUrl, required String apiKey})
Constructs a FollowerApi instance.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

avoidDuplicate({required String phoneNumber}) Future<ApiResponseModel<bool?>>
Checks if a phone number already exists (avoid duplicate).
following({required String id}) Future<ApiResponseModel<List<CompanyFollowedModel>>>
Gets the list of companies a follower is following.
get({required String id}) Future<ApiResponseModel<FollowerModel?>>
Gets follower details by ID.
getByPhone({required String phoneNumber}) Future<ApiResponseModel<FollowerModel?>>
Gets a follower by phone number.
getCompanyCampaigns({required String id, required String companyId}) Future<ApiResponseModel<List<CampaignModel>>>
Gets campaigns from a followed company.
getFollowedCompany({required String id, required String companyId}) Future<ApiResponseModel<CompanyModel?>>
Gets details of a specific company being followed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
subscribe({required String id, required String companyId}) Future<ApiResponseModel<CompanyFollowedModel?>>
Subscribes to a company.
toString() String
A string representation of this object.
inherited
unsubscribe({required String id, required String companyId}) Future<ApiResponseModel<bool?>>
Unsubscribes from a company.
update({required String id, String? name}) Future<ApiResponseModel<FollowerModel?>>
Updates follower details.
Updates follower logo/photo.

Operators

operator ==(Object other) bool
The equality operator.
inherited