class Project extends Package

Class Project

Methods

__construct(string $projectId, string $apiKey, Client $httpClient)

Constructor.

from Package
string
getProjectId()

Get the project ID.

from Package
string
getApiKey()

Get the API key.

from Package
Client
getHttpClient()

Get the HTTP client object.

from Package
string
getBasePath(string $action)

Get the base path for the command including an action.

from Package
ResponseInterface
create(string $login, string $accountKey, Languageproject $project)

Create Crowdin project.

ResponseInterface
edit(Languageproject $project)

Edit Crowdin project.

ResponseInterface
getList(string $login, string $accountKey)

Get Crowdin Project details.

ResponseInterface
getInfo()

Get Crowdin Project details.

ResponseInterface
delete()

Delete Crowdin project with all translations.

Details

in Package at line 45
__construct(string $projectId, string $apiKey, Client $httpClient)

Constructor.

Parameters

string $projectId The project ID.
string $apiKey The API key
Client $httpClient The HTTP client object.

in Package at line 57
protected string getProjectId()

Get the project ID.

Return Value

string

in Package at line 67
protected string getApiKey()

Get the API key.

Return Value

string

in Package at line 77
protected Client getHttpClient()

Get the HTTP client object.

Return Value

Client

in Package at line 89
protected string getBasePath(string $action)

Get the base path for the command including an action.

Parameters

string $action The action to perform.

Return Value

string

at line 37
ResponseInterface create(string $login, string $accountKey, Languageproject $project)

Create Crowdin project.

Parameters

string $login The user login.
string $accountKey The user account key.
Languageproject $project The project object.

Return Value

ResponseInterface

See also

https://crowdin.com/page/api/create-project

at line 62
ResponseInterface edit(Languageproject $project)

Edit Crowdin project.

Parameters

Languageproject $project The language project object.

Return Value

ResponseInterface

See also

https://crowdin.com/page/api/edit-project

at line 82
ResponseInterface getList(string $login, string $accountKey)

Get Crowdin Project details.

Parameters

string $login Your Crowdin Account login name.
string $accountKey Account API key (profile settings -> "API & SSO" tab).

Return Value

ResponseInterface

See also

https://crowdin.com/page/api/get-projects

at line 102
ResponseInterface getInfo()

Get Crowdin Project details.

Return Value

ResponseInterface

See also

https://crowdin.com/page/api/info

at line 116
ResponseInterface delete()

Delete Crowdin project with all translations.

Return Value

ResponseInterface

See also

https://crowdin.com/page/api/delete-project