All URIs are relative to https://api.phrase.com/v2
Method | HTTP request | Description |
---|---|---|
GithubSyncExport | Post /github_syncs/export | Export from Phrase Strings to GitHub |
GithubSyncImport | Post /github_syncs/import | Import to Phrase Strings from GitHub |
GithubSyncExport(ctx, githubSyncExportParameters, optional)
Export from Phrase Strings to GitHub
Export translations from Phrase Strings to GitHub according to the .phraseapp.yml file within the GitHub repository.
Note: Export is done asynchronously and may take several seconds depending on the project size.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
githubSyncExportParameters | GithubSyncExportParameters | ||
optional | *GithubSyncExportOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GithubSyncExportOpts struct
Name | Type | Description | Notes |
---|
xPhraseAppOTP | optional.String| Two-Factor-Authentication token (optional) |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GithubSyncImport(ctx, githubSyncImportParameters, optional)
Import to Phrase Strings from GitHub
Import files to Phrase Strings from your connected GitHub repository.
Note: Import is done asynchronously and may take several seconds depending on the project size.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
githubSyncImportParameters | GithubSyncImportParameters | ||
optional | *GithubSyncImportOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GithubSyncImportOpts struct
Name | Type | Description | Notes |
---|
xPhraseAppOTP | optional.String| Two-Factor-Authentication token (optional) |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]