跳到主要内容

Get File Blob

GET 

/api/v5/repos/:owner/:repo/git/blobs/:sha

Request​

Path Parameters

    owner stringrequired

    Repository space address (organization or individual's address path)

    repo stringrequired

    Repository path (path)

    sha stringrequired

    The Blob SHA of the file, which can be obtained via the [Get Contents in Specific Repository Path] API.

Query Parameters

    access_token string

    User authorization code

Responses​

Successful Response

Response Headers
    Schema
      shastring
      sizeinteger
      urlstring
      contentstring
      encodingstring