Defines an API request.
constructFormdata() Constructs a FormData instance from an object.
the object to generate the FormData from
delete() DELETE request
generateHeaders() A function used to generate the headers that need to be passed to the request performee.
get() GET request
GET /api/hashtags/:name
- promises to get a hashtag by name
the name of the hashtag
specifies whether the current session is authenticated
GET /api/hashtags/search
- promises to search for hashtags
the search query
specifies whether the current session is authenticated
GET /api/hashtags/:name/posts
- promises to get a list of posts that contain the specified hashtag
the name of the hashtag
GET /api/hashtags/suggested
- promises to retrieve the suggested hashtags
specifies whether the current session is authenticated
GET /api/hashtags/trending
- promises to retrieve the trending hashtags
specifies whether the current session is authenticated
patch() PATCH request
Request body
patchFormdata() PATCH request (multipart/form-data, application/x-www-form-urlencoded)
post() POST request
Request body
postFormdata() POST request (multipart/form-data, application/x-www-form-urlencoded)
put() PUT request
Request body
putFormdata() PUT request (multipart/form-data, application/x-www-form-urlencoded)
POST /api/hashtags/:name/report
- promises to report a hashtag
options for hashtag reporting
Generated using TypeDoc
HashtagsAPI - Prodivdes methods to interface with hashtag API endpoints