Documentation ¶
Index ¶
- Constants
- type Module
- func (m *Module) AccountAliasPOSTHandler(c *gin.Context)
- func (m *Module) AccountAvatarDELETEHandler(c *gin.Context)
- func (m *Module) AccountBlockPOSTHandler(c *gin.Context)
- func (m *Module) AccountCreatePOSTHandler(c *gin.Context)
- func (m *Module) AccountDeletePOSTHandler(c *gin.Context)
- func (m *Module) AccountFollowPOSTHandler(c *gin.Context)
- func (m *Module) AccountFollowersGETHandler(c *gin.Context)
- func (m *Module) AccountFollowingGETHandler(c *gin.Context)
- func (m *Module) AccountGETHandler(c *gin.Context)
- func (m *Module) AccountHeaderDELETEHandler(c *gin.Context)
- func (m *Module) AccountListsGETHandler(c *gin.Context)
- func (m *Module) AccountLookupGETHandler(c *gin.Context)
- func (m *Module) AccountMovePOSTHandler(c *gin.Context)
- func (m *Module) AccountMutePOSTHandler(c *gin.Context)
- func (m *Module) AccountNotePOSTHandler(c *gin.Context)
- func (m *Module) AccountRelationshipsGETHandler(c *gin.Context)
- func (m *Module) AccountSearchGETHandler(c *gin.Context)
- func (m *Module) AccountStatusesGETHandler(c *gin.Context)
- func (m *Module) AccountThemesGETHandler(c *gin.Context)
- func (m *Module) AccountUnblockPOSTHandler(c *gin.Context)
- func (m *Module) AccountUnfollowPOSTHandler(c *gin.Context)
- func (m *Module) AccountUnmutePOSTHandler(c *gin.Context)
- func (m *Module) AccountUpdateCredentialsPATCHHandler(c *gin.Context)
- func (m *Module) AccountVerifyGETHandler(c *gin.Context)
- func (m *Module) Route(...)
Constants ¶
const ( ExcludeReblogsKey = "exclude_reblogs" ExcludeRepliesKey = "exclude_replies" LimitKey = "limit" MaxIDKey = "max_id" MinIDKey = "min_id" OnlyMediaKey = "only_media" OnlyPublicKey = "only_public" PinnedKey = "pinned" BasePath = "/v1/accounts" IDKey = "id" BasePathWithID = BasePath + "/:" + IDKey BlockPath = BasePathWithID + "/block" DeletePath = BasePath + "/delete" FollowersPath = BasePathWithID + "/followers" FollowingPath = BasePathWithID + "/following" FollowPath = BasePathWithID + "/follow" ListsPath = BasePathWithID + "/lists" LookupPath = BasePath + "/lookup" MutePath = BasePathWithID + "/mute" NotePath = BasePathWithID + "/note" RelationshipsPath = BasePath + "/relationships" SearchPath = BasePath + "/search" StatusesPath = BasePathWithID + "/statuses" UnblockPath = BasePathWithID + "/unblock" UnfollowPath = BasePathWithID + "/unfollow" UnmutePath = BasePathWithID + "/unmute" UpdatePath = BasePath + "/update_credentials" VerifyPath = BasePath + "/verify_credentials" MovePath = BasePath + "/move" AliasPath = BasePath + "/alias" ThemesPath = BasePath + "/themes" // ProfileBasePath for the profile API, an extension of the account update API with a different path. ProfileBasePath = "/v1/profile" AvatarPath = ProfileBasePath + "/avatar" HeaderPath = ProfileBasePath + "/header" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
func New ¶
func New(processor *processing.Processor) *Module
func (*Module) AccountAliasPOSTHandler ¶ added in v0.14.0
AccountAliasPOSTHandler swagger:operation POST /api/v1/accounts/alias accountAlias
Alias your account to another account by setting alsoKnownAs to the given URI.
This is useful when you want to move from another account this this account.
In such cases, you should set the alsoKnownAs of this account to the URI of the account you want to move from.
--- tags: - accounts consumes: - multipart/form-data parameters: - name: also_known_as_uris in: formData description: >- ActivityPub URI/IDs of target accounts to which this account is being aliased. Eg., `["https://example.org/users/some_account"]`. Use an empty array to unset alsoKnownAs, clearing the aliases. type: string required: true security: - OAuth2 Bearer: - write:accounts responses: '200': description: "The newly updated account." schema: "$ref": "#/definitions/account" '400': description: bad request '401': description: unauthorized '404': description: not found '406': description: not acceptable '422': description: Unprocessable. Check the response body for more details. '500': description: internal server error
func (*Module) AccountAvatarDELETEHandler ¶ added in v0.16.0
AccountAvatarDELETEHandler swagger:operation DELETE /api/v1/profile/avatar accountAvatarDelete
Delete the authenticated account's avatar. If the account doesn't have an avatar, the call succeeds anyway.
--- tags: - accounts produces: - application/json security: - OAuth2 Bearer: - admin responses: '200': description: The updated account, including profile source information. schema: "$ref": "#/definitions/account" '400': description: bad request '401': description: unauthorized '403': description: forbidden '406': description: not acceptable '500': description: internal server error
func (*Module) AccountBlockPOSTHandler ¶
AccountBlockPOSTHandler swagger:operation POST /api/v1/accounts/{id}/block accountBlock
Block account with id.
--- tags: - accounts produces: - application/json parameters: - name: id type: string description: The id of the account to block. in: path required: true security: - OAuth2 Bearer: - write:blocks responses: '200': description: Your relationship to the account. schema: "$ref": "#/definitions/accountRelationship" '400': description: bad request '401': description: unauthorized '404': description: not found '406': description: not acceptable '500': description: internal server error
func (*Module) AccountCreatePOSTHandler ¶
AccountCreatePOSTHandler swagger:operation POST /api/v1/accounts accountCreate
Create a new account using an application token.
The parameters can also be given in the body of the request, as JSON, if the content-type is set to 'application/json'. The parameters can also be given in the body of the request, as XML, if the content-type is set to 'application/xml'.
--- tags: - accounts consumes: - application/json - application/xml - application/x-www-form-urlencoded produces: - application/json security: - OAuth2 Application: - write:accounts responses: '200': description: "An OAuth2 access token for the newly-created account." schema: "$ref": "#/definitions/oauthToken" '400': description: bad request '401': description: unauthorized '404': description: not found '406': description: not acceptable '422': description: >- Unprocessable. Your account creation request cannot be processed because either too many accounts have been created on this instance in the last 24h, or the pending account backlog is full. '500': description: internal server error
func (*Module) AccountDeletePOSTHandler ¶
AccountDeletePOSTHandler swagger:operation POST /api/v1/accounts/delete accountDelete
Delete your account.
--- tags: - accounts consumes: - multipart/form-data parameters: - name: password in: formData description: Password of the account user, for confirmation. type: string required: true security: - OAuth2 Bearer: - write:accounts responses: '202': description: "The account deletion has been accepted and the account will be deleted." '400': description: bad request '401': description: unauthorized '404': description: not found '406': description: not acceptable '500': description: internal server error
func (*Module) AccountFollowPOSTHandler ¶
AccountFollowPOSTHandler swagger:operation POST /api/v1/accounts/{id}/follow accountFollow
Follow account with id.
The parameters can also be given in the body of the request, as JSON, if the content-type is set to 'application/json'. The parameters can also be given in the body of the request, as XML, if the content-type is set to 'application/xml'.
If you already follow (request) the given account, then the follow (request) will be updated instead using the `reblogs` and `notify` parameters.
--- tags: - accounts consumes: - application/json - application/xml - application/x-www-form-urlencoded parameters: - name: id required: true in: path description: ID of the account to follow. type: string - name: reblogs type: boolean default: true description: Show reblogs from this account. in: formData - name: notify type: boolean default: false description: Notify when this account posts. in: formData produces: - application/json security: - OAuth2 Bearer: - write:follows responses: '200': name: account relationship description: Your relationship to this account. schema: "$ref": "#/definitions/accountRelationship" '400': description: bad request '401': description: unauthorized '404': description: not found '406': description: not acceptable '500': description: internal server error
func (*Module) AccountFollowersGETHandler ¶
AccountFollowersGETHandler swagger:operation GET /api/v1/accounts/{id}/followers accountFollowers
See followers of account with given id.
The next and previous queries can be parsed from the returned Link header. Example:
``` <https://example.org/api/v1/accounts/0657WMDEC3KQDTD6NZ4XJZBK4M/followers?limit=80&max_id=01FC0SKA48HNSVR6YKZCQGS2V8>; rel="next", <https://example.org/api/v1/accounts/0657WMDEC3KQDTD6NZ4XJZBK4M/followers?limit=80&min_id=01FC0SKW5JK2Q4EVAV2B462YY0>; rel="prev" ````
If account `hide_collections` is true, and requesting account != target account, no results will be returned.
--- tags: - accounts produces: - application/json parameters: - name: id type: string description: Account ID. in: path required: true - name: max_id type: string description: >- Return only follower accounts *OLDER* than the given max ID. The follower account with the specified ID will not be included in the response. NOTE: the ID is of the internal follow, NOT any of the returned accounts. in: query required: false - name: since_id type: string description: >- Return only follower accounts *NEWER* than the given since ID. The follower account with the specified ID will not be included in the response. NOTE: the ID is of the internal follow, NOT any of the returned accounts. in: query required: false - name: min_id type: string description: >- Return only follower accounts *IMMEDIATELY NEWER* than the given min ID. The follower account with the specified ID will not be included in the response. NOTE: the ID is of the internal follow, NOT any of the returned accounts. in: query required: false - name: limit type: integer description: Number of follower accounts to return. default: 40 minimum: 1 maximum: 80 in: query required: false security: - OAuth2 Bearer: - read:accounts responses: '200': name: accounts description: Array of accounts that follow this account. schema: type: array items: "$ref": "#/definitions/account" headers: Link: type: string description: Links to the next and previous queries. '400': description: bad request '401': description: unauthorized '404': description: not found '406': description: not acceptable '500': description: internal server error
func (*Module) AccountFollowingGETHandler ¶
AccountFollowingGETHandler swagger:operation GET /api/v1/accounts/{id}/following accountFollowing
See accounts followed by given account id.
The next and previous queries can be parsed from the returned Link header. Example:
``` <https://example.org/api/v1/accounts/0657WMDEC3KQDTD6NZ4XJZBK4M/following?limit=80&max_id=01FC0SKA48HNSVR6YKZCQGS2V8>; rel="next", <https://example.org/api/v1/accounts/0657WMDEC3KQDTD6NZ4XJZBK4M/following?limit=80&min_id=01FC0SKW5JK2Q4EVAV2B462YY0>; rel="prev" ````
If account `hide_collections` is true, and requesting account != target account, no results will be returned.
--- tags: - accounts produces: - application/json parameters: - name: id type: string description: Account ID. in: path required: true - name: max_id type: string description: >- Return only following accounts *OLDER* than the given max ID. The following account with the specified ID will not be included in the response. NOTE: the ID is of the internal follow, NOT any of the returned accounts. in: query required: false - name: since_id type: string description: >- Return only following accounts *NEWER* than the given since ID. The following account with the specified ID will not be included in the response. NOTE: the ID is of the internal follow, NOT any of the returned accounts. in: query required: false - name: min_id type: string description: >- Return only following accounts *IMMEDIATELY NEWER* than the given min ID. The following account with the specified ID will not be included in the response. NOTE: the ID is of the internal follow, NOT any of the returned accounts. in: query required: false - name: limit type: integer description: Number of following accounts to return. default: 40 minimum: 1 maximum: 80 in: query required: false security: - OAuth2 Bearer: - read:accounts responses: '200': name: accounts description: Array of accounts that are followed by this account. schema: type: array items: "$ref": "#/definitions/account" headers: Link: type: string description: Links to the next and previous queries. '400': description: bad request '401': description: unauthorized '404': description: not found '406': description: not acceptable '500': description: internal server error
func (*Module) AccountGETHandler ¶
AccountGETHandler swagger:operation GET /api/v1/accounts/{id} accountGet
Get information about an account with the given ID.
--- tags: - accounts produces: - application/json parameters: - name: id type: string description: The id of the requested account. in: path required: true security: - OAuth2 Bearer: - read:accounts responses: '200': description: The requested account. schema: "$ref": "#/definitions/account" '400': description: bad request '401': description: unauthorized '404': description: not found '406': description: not acceptable '500': description: internal server error
func (*Module) AccountHeaderDELETEHandler ¶ added in v0.16.0
AccountHeaderDELETEHandler swagger:operation DELETE /api/v1/profile/header accountHeaderDelete
Delete the authenticated account's header. If the account doesn't have a header, the call succeeds anyway.
--- tags: - accounts produces: - application/json security: - OAuth2 Bearer: - admin responses: '200': description: The updated account, including profile source information. schema: "$ref": "#/definitions/account" '400': description: bad request '401': description: unauthorized '403': description: forbidden '406': description: not acceptable '500': description: internal server error
func (*Module) AccountListsGETHandler ¶ added in v0.10.0
AccountListsGETHandler swagger:operation GET /api/v1/accounts/{id}/lists accountLists
See all lists of yours that contain requested account.
--- tags: - accounts produces: - application/json parameters: - name: id type: string description: Account ID. in: path required: true security: - OAuth2 Bearer: - read:lists responses: '200': name: lists description: Array of all lists containing this account. schema: type: array items: "$ref": "#/definitions/list" '400': description: bad request '401': description: unauthorized '404': description: not found '406': description: not acceptable '500': description: internal server error
func (*Module) AccountLookupGETHandler ¶ added in v0.10.0
AccountLookupGETHandler swagger:operation GET /api/v1/accounts/lookup accountLookupGet
Quickly lookup a username to see if it is available, skipping WebFinger resolution.
--- tags: - accounts produces: - application/json parameters: - name: acct type: string description: The username or Webfinger address to lookup. in: query required: true security: - OAuth2 Bearer: - read:accounts responses: '200': name: lookup result description: Result of the lookup. schema: "$ref": "#/definitions/account" '400': description: bad request '401': description: unauthorized '404': description: not found '406': description: not acceptable '500': description: internal server error
func (*Module) AccountMovePOSTHandler ¶ added in v0.14.0
AccountMovePOSTHandler swagger:operation POST /api/v1/accounts/move accountMove
Move your account to another account.
--- tags: - accounts consumes: - multipart/form-data parameters: - name: password in: formData description: Password of the account user, for confirmation. type: string required: true - name: moved_to_uri in: formData description: >- ActivityPub URI/ID of the target account. Eg., `https://example.org/users/some_account`. The target account must be alsoKnownAs the requesting account in order for the move to be successful. type: string required: true security: - OAuth2 Bearer: - write:accounts responses: '202': description: The account move has been accepted and the account will be moved. '400': description: bad request '401': description: unauthorized '404': description: not found '406': description: not acceptable '422': description: Unprocessable. Check the response body for more details. '500': description: internal server error
func (*Module) AccountMutePOSTHandler ¶ added in v0.16.0
AccountMutePOSTHandler swagger:operation POST /api/v1/accounts/{id}/mute accountMute
Mute account by ID.
If account was already muted, succeeds anyway. This can be used to update the details of a mute.
--- tags: - accounts produces: - application/json parameters: - name: id type: string description: The ID of the account to block. in: path required: true - name: notifications type: boolean description: Mute notifications as well as posts. in: formData required: false default: false - name: duration type: number description: How long the mute should last, in seconds. If 0 or not provided, mute lasts indefinitely. in: formData required: false default: 0 security: - OAuth2 Bearer: - write:mutes responses: '200': description: Your relationship to the account. schema: "$ref": "#/definitions/accountRelationship" '400': description: bad request '401': description: unauthorized '403': description: forbidden to moved accounts '404': description: not found '406': description: not acceptable '500': description: internal server error
func (*Module) AccountNotePOSTHandler ¶ added in v0.11.0
AccountNotePOSTHandler swagger:operation POST /api/v1/accounts/{id}/note accountNote
Set a private note for an account with the given id.
--- tags: - accounts consumes: - multipart/form-data produces: - application/json parameters: - name: id type: string description: The id of the account for which to set a note. in: path required: true - name: comment type: string description: The text of the note. Omit this parameter or send an empty string to clear the note. in: formData default: "" security: - OAuth2 Bearer: - write:accounts responses: '200': description: Your relationship to the account. schema: "$ref": "#/definitions/accountRelationship" '400': description: bad request '401': description: unauthorized '404': description: not found '406': description: not acceptable '500': description: internal server error
func (*Module) AccountRelationshipsGETHandler ¶
AccountRelationshipsGETHandler swagger:operation GET /api/v1/accounts/relationships accountRelationships
See your account's relationships with the given account IDs.
--- tags: - accounts produces: - application/json parameters: - name: id[] type: array items: type: string description: Account IDs. in: query collectionFormat: multi required: true security: - OAuth2 Bearer: - read:accounts responses: '200': name: account relationships description: Array of account relationships. schema: type: array items: "$ref": "#/definitions/accountRelationship" '400': description: bad request '401': description: unauthorized '404': description: not found '406': description: not acceptable '500': description: internal server error
func (*Module) AccountSearchGETHandler ¶ added in v0.10.0
AccountSearchGETHandler swagger:operation GET /api/v1/accounts/search accountSearchGet
Search for accounts by username and/or display name.
--- tags: - accounts produces: - application/json parameters: - name: limit type: integer description: Number of results to try to return. default: 40 maximum: 80 minimum: 1 in: query - name: offset type: integer description: >- Page number of results to return (starts at 0). This parameter is currently not used, offsets over 0 will always return 0 results. default: 0 maximum: 10 minimum: 0 in: query - name: q type: string description: |- Query string to search for. This can be in the following forms: - `@[username]` -- search for an account with the given username on any domain. Can return multiple results. - `@[username]@[domain]` -- search for a remote account with exact username and domain. Will only ever return 1 result at most. - any arbitrary string -- search for accounts containing the given string in their username or display name. Can return multiple results. in: query required: true - name: resolve type: boolean description: >- If query is for `@[username]@[domain]`, or a URL, allow the GoToSocial instance to resolve the search by making calls to remote instances (webfinger, ActivityPub, etc). default: false in: query - name: following type: boolean description: >- Show only accounts that the requesting account follows. If this is set to `true`, then the GoToSocial instance will enhance the search by also searching within account notes, not just in usernames and display names. default: false in: query security: - OAuth2 Bearer: - read:accounts responses: '200': name: search results description: Results of the search. schema: type: array items: "$ref": "#/definitions/account" '400': description: bad request '401': description: unauthorized '404': description: not found '406': description: not acceptable '500': description: internal server error
func (*Module) AccountStatusesGETHandler ¶
AccountStatusesGETHandler swagger:operation GET /api/v1/accounts/{id}/statuses accountStatuses
See statuses posted by the requested account.
The statuses will be returned in descending chronological order (newest first), with sequential IDs (bigger = newer).
--- tags: - accounts produces: - application/json parameters: - name: id type: string description: Account ID. in: path required: true - name: limit type: integer description: Number of statuses to return. default: 30 in: query required: false - name: exclude_replies type: boolean description: Exclude statuses that are a reply to another status. default: false in: query required: false - name: exclude_reblogs type: boolean description: Exclude statuses that are a reblog/boost of another status. default: false in: query required: false - name: max_id type: string description: >- Return only statuses *OLDER* than the given max status ID. The status with the specified ID will not be included in the response. in: query - name: min_id type: string description: >- Return only statuses *NEWER* than the given min status ID. The status with the specified ID will not be included in the response. in: query required: false - name: pinned type: boolean description: Show only pinned statuses. In other words, exclude statuses that are not pinned to the given account ID. default: false in: query required: false - name: only_media type: boolean description: Show only statuses with media attachments. default: false in: query required: false - name: only_public type: boolean description: Show only statuses with a privacy setting of 'public'. default: false in: query required: false security: - OAuth2 Bearer: - read:accounts responses: '200': name: statuses description: Array of statuses. schema: type: array items: "$ref": "#/definitions/status" headers: Link: type: string description: Links to the next and previous queries. '400': description: bad request '401': description: unauthorized '404': description: not found '406': description: not acceptable '500': description: internal server error
func (*Module) AccountThemesGETHandler ¶ added in v0.15.0
AccountThemesGETHandler swagger:operation GET /api/v1/accounts/themes accountThemes
See preset CSS themes available to accounts on this instance.
--- tags: - accounts produces: - application/json security: - OAuth2 Bearer: - read:accounts responses: '200': name: statuses description: Array of themes. schema: type: array items: "$ref": "#/definitions/theme" '400': description: bad request '401': description: unauthorized '404': description: not found '406': description: not acceptable '500': description: internal server error
func (*Module) AccountUnblockPOSTHandler ¶
AccountUnblockPOSTHandler swagger:operation POST /api/v1/accounts/{id}/unblock accountUnblock
Unblock account with ID.
--- tags: - accounts produces: - application/json parameters: - name: id type: string description: The id of the account to unblock. in: path required: true security: - OAuth2 Bearer: - write:blocks responses: '200': name: account relationship description: Your relationship to this account. schema: "$ref": "#/definitions/accountRelationship" '400': description: bad request '401': description: unauthorized '404': description: not found '406': description: not acceptable '500': description: internal server error
func (*Module) AccountUnfollowPOSTHandler ¶
AccountUnfollowPOSTHandler swagger:operation POST /api/v1/accounts/{id}/unfollow accountUnfollow
Unfollow account with id.
--- tags: - accounts produces: - application/json parameters: - name: id type: string description: The id of the account to unfollow. in: path required: true security: - OAuth2 Bearer: - write:follows responses: '200': name: account relationship description: Your relationship to this account. schema: "$ref": "#/definitions/accountRelationship" '400': description: bad request '401': description: unauthorized '404': description: not found '406': description: not acceptable '500': description: internal server error
func (*Module) AccountUnmutePOSTHandler ¶ added in v0.16.0
AccountUnmutePOSTHandler swagger:operation POST /api/v1/accounts/{id}/unmute accountUnmute
Unmute account by ID.
If account was already unmuted (or has never been muted), succeeds anyway.
--- tags: - accounts produces: - application/json parameters: - name: id type: string description: The ID of the account to unmute. in: path required: true security: - OAuth2 Bearer: - write:mutes responses: '200': name: account relationship description: Your relationship to this account. schema: "$ref": "#/definitions/accountRelationship" '400': description: bad request '401': description: unauthorized '404': description: not found '406': description: not acceptable '500': description: internal server error
func (*Module) AccountUpdateCredentialsPATCHHandler ¶
AccountUpdateCredentialsPATCHHandler swagger:operation PATCH /api/v1/accounts/update_credentials accountUpdate
Update your account.
--- tags: - accounts consumes: - multipart/form-data - application/x-www-form-urlencoded - application/json produces: - application/json parameters: - name: discoverable in: formData description: Account should be made discoverable and shown in the profile directory (if enabled). type: boolean - name: bot in: formData description: Account is flagged as a bot. type: boolean - name: display_name in: formData description: The display name to use for the account. type: string allowEmptyValue: true - name: note in: formData description: Bio/description of this account. type: string allowEmptyValue: true - name: avatar in: formData description: Avatar of the user. type: file - name: avatar_description in: formData description: Description of avatar image, for alt-text. type: string allowEmptyValue: true - name: header in: formData description: Header of the user. type: file - name: header_description in: formData description: Description of header image, for alt-text. type: string allowEmptyValue: true - name: locked in: formData description: Require manual approval of follow requests. type: boolean - name: source[privacy] in: formData description: Default post privacy for authored statuses. type: string - name: source[sensitive] in: formData description: Mark authored statuses as sensitive by default. type: boolean - name: source[language] in: formData description: Default language to use for authored statuses (ISO 6391). type: string - name: source[status_content_type] in: formData description: Default content type to use for authored statuses (text/plain or text/markdown). type: string - name: theme in: formData description: >- FileName of the theme to use when rendering this account's profile or statuses. The theme must exist on this server, as indicated by /api/v1/accounts/themes. Empty string unsets theme and returns to the default GoToSocial theme. type: string - name: custom_css in: formData description: >- Custom CSS to use when rendering this account's profile or statuses. String must be no more than 5,000 characters (~5kb). type: string - name: enable_rss in: formData description: Enable RSS feed for this account's Public posts at `/[username]/feed.rss` type: boolean - name: hide_collections in: formData description: Hide the account's following/followers collections. type: boolean - name: web_visibility in: formData description: |- Posts to show on the web view of the account. "public": default, show only Public visibility posts on the web. "unlisted": show Public *and* Unlisted visibility posts on the web. "none": show no posts on the web, not even Public ones. type: string - name: fields_attributes[0][name] in: formData description: Name of 1st profile field to be added to this account's profile. (The index may be any string; add more indexes to send more fields.) type: string - name: fields_attributes[0][value] in: formData description: Value of 1st profile field to be added to this account's profile. (The index may be any string; add more indexes to send more fields.) type: string - name: fields_attributes[1][name] in: formData description: Name of 2nd profile field to be added to this account's profile. type: string - name: fields_attributes[1][value] in: formData description: Value of 2nd profile field to be added to this account's profile. type: string - name: fields_attributes[2][name] in: formData description: Name of 3rd profile field to be added to this account's profile. type: string - name: fields_attributes[2][value] in: formData description: Value of 3rd profile field to be added to this account's profile. type: string - name: fields_attributes[3][name] in: formData description: Name of 4th profile field to be added to this account's profile. type: string - name: fields_attributes[3][value] in: formData description: Value of 4th profile field to be added to this account's profile. type: string - name: fields_attributes[4][name] in: formData description: Name of 5th profile field to be added to this account's profile. type: string - name: fields_attributes[4][value] in: formData description: Value of 5th profile field to be added to this account's profile. type: string - name: fields_attributes[5][name] in: formData description: Name of 6th profile field to be added to this account's profile. type: string - name: fields_attributes[5][value] in: formData description: Value of 6th profile field to be added to this account's profile. type: string security: - OAuth2 Bearer: - write:accounts responses: '200': description: "The newly updated account." schema: "$ref": "#/definitions/account" '400': description: bad request '401': description: unauthorized '404': description: not found '406': description: not acceptable '500': description: internal server error
func (*Module) AccountVerifyGETHandler ¶
AccountVerifyGETHandler swagger:operation GET /api/v1/accounts/verify_credentials accountVerify
Verify a token by returning account details pertaining to it.
--- tags: - accounts produces: - application/json security: - OAuth2 Bearer: - read:accounts responses: '200': schema: "$ref": "#/definitions/account" '400': description: bad request '401': description: unauthorized '404': description: not found '406': description: not acceptable '500': description: internal server error
Source Files ¶
- accountalias.go
- accountcreate.go
- accountdelete.go
- accountget.go
- accountmove.go
- accounts.go
- accountupdate.go
- accountverify.go
- block.go
- follow.go
- followers.go
- following.go
- lists.go
- lookup.go
- mute.go
- note.go
- profile.go
- relationships.go
- search.go
- statuses.go
- themesget.go
- unblock.go
- unfollow.go
- unmute.go