myStory method

Future<Story> myStory(
  1. String storyId
)

Fetches an individual story with the given id.

Implementation

Future<Story> myStory(String storyId) async {
  return ApiFactory.handleApiError(() async {
    final response = await _dio
        .get("/v1/api/story/mystory", queryParameters: {"id": storyId});
    return Story.fromJson(response.data);
  });
}