Skip to content

Latest commit

 

History

History
106 lines (71 loc) · 2.72 KB

PublicAPI.md

File metadata and controls

106 lines (71 loc) · 2.72 KB

PublicAPI

All URIs are relative to https://q.trap.jp/api/v3

Method HTTP request Description
getPublicUserIcon GET /public/icon/{username} ユーザーのアイコン画像を取得
getServerVersion GET /version バージョンを取得

getPublicUserIcon

    open class func getPublicUserIcon(username: String, completion: @escaping (_ data: URL?, _ error: Error?) -> Void)

ユーザーのアイコン画像を取得

ユーザーのアイコン画像を取得します。

Example

// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import Traq

let username = "username_example" // String | ユーザー名

// ユーザーのアイコン画像を取得
PublicAPI.getPublicUserIcon(username: username) { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}

Parameters

Name Type Description Notes
username String ユーザー名

Return type

URL

Authorization

OAuth2, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: image/jpeg, image/gif, image/png

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getServerVersion

    open class func getServerVersion(completion: @escaping (_ data: Version?, _ error: Error?) -> Void)

バージョンを取得

サーバーバージョン及びサーバーフラグ情報を取得します。

Example

// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import Traq


// バージョンを取得
PublicAPI.getServerVersion() { (response, error) in
    guard error == nil else {
        print(error)
        return
    }

    if (response) {
        dump(response)
    }
}

Parameters

This endpoint does not need any parameter.

Return type

Version

Authorization

OAuth2, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]