Skip to content

Latest commit

 

History

History
256 lines (148 loc) · 7.5 KB

ScreenshotsApi.md

File metadata and controls

256 lines (148 loc) · 7.5 KB

\ScreenshotsApi

All URIs are relative to https://api.phrase.com/v2

Method HTTP request Description
ScreenshotCreate Post /projects/{project_id}/screenshots Create a screenshot
ScreenshotDelete Delete /projects/{project_id}/screenshots/{id} Delete a screenshot
ScreenshotShow Get /projects/{project_id}/screenshots/{id} Get a single screenshot
ScreenshotUpdate Patch /projects/{project_id}/screenshots/{id} Update a screenshot
ScreenshotsList Get /projects/{project_id}/screenshots List screenshots

ScreenshotCreate

Screenshot ScreenshotCreate(ctx, projectId, optional)

Create a screenshot

Create a new screenshot.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project ID
optional *ScreenshotCreateOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a ScreenshotCreateOpts struct

Name Type Description Notes

xPhraseAppOTP | optional.String| Two-Factor-Authentication token (optional) | branch | optional.String| specify the branch to use | name | optional.String| Name of the screenshot | description | optional.String| Description of the screenshot | filename | *optional.Interface of os.File***optional.os.File| Screenshot file |

Return type

Screenshot

Authorization

Basic, Token

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

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

ScreenshotDelete

ScreenshotDelete(ctx, projectId, id, optional)

Delete a screenshot

Delete an existing screenshot.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project ID
id string ID
optional *ScreenshotDeleteOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a ScreenshotDeleteOpts struct

Name Type Description Notes

xPhraseAppOTP | optional.String| Two-Factor-Authentication token (optional) | branch | optional.String| specify the branch to use |

Return type

(empty response body)

Authorization

Basic, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

ScreenshotShow

Screenshot ScreenshotShow(ctx, projectId, id, optional)

Get a single screenshot

Get details on a single screenshot for a given project.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project ID
id string ID
optional *ScreenshotShowOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a ScreenshotShowOpts struct

Name Type Description Notes

xPhraseAppOTP | optional.String| Two-Factor-Authentication token (optional) | branch | optional.String| specify the branch to use |

Return type

Screenshot

Authorization

Basic, Token

HTTP request headers

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

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

ScreenshotUpdate

Screenshot ScreenshotUpdate(ctx, projectId, id, screenshotUpdateParameters, optional)

Update a screenshot

Update an existing screenshot.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project ID
id string ID
screenshotUpdateParameters ScreenshotUpdateParameters
optional *ScreenshotUpdateOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a ScreenshotUpdateOpts struct

Name Type Description Notes

xPhraseAppOTP | optional.String| Two-Factor-Authentication token (optional) |

Return type

Screenshot

Authorization

Basic, Token

HTTP request headers

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

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

ScreenshotsList

[]Screenshot ScreenshotsList(ctx, projectId, optional)

List screenshots

List all screenshots for the given project.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
projectId string Project ID
optional *ScreenshotsListOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a ScreenshotsListOpts struct

Name Type Description Notes

xPhraseAppOTP | optional.String| Two-Factor-Authentication token (optional) | page | optional.Int32| Page number | perPage | optional.Int32| Limit on the number of objects to be returned, between 1 and 100. 25 by default | branch | optional.String| specify the branch to use | keyId | optional.String| filter by key |

Return type

[]Screenshot

Authorization

Basic, Token

HTTP request headers

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

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