1 | <?php |
||
19 | Class Project extends Package |
||
20 | { |
||
21 | /** |
||
22 | * Create Crowdin project. |
||
23 | * |
||
24 | * @param string $login The user login. |
||
25 | * @param string $accountKey The user account key. |
||
26 | * @param Languageproject $project The project object. |
||
27 | * |
||
28 | * @see https://crowdin.com/page/api/create-project |
||
29 | * @since 1.0.7 |
||
30 | * |
||
31 | * @return \Psr\Http\Message\ResponseInterface |
||
32 | */ |
||
33 | 1 | public function create($login, $accountKey, Languageproject $project) |
|
47 | |||
48 | /** |
||
49 | * Edit Crowdin project. |
||
50 | * |
||
51 | * @param Languageproject $project The language project object. |
||
52 | * |
||
53 | * @see https://crowdin.com/page/api/edit-project |
||
54 | * @since 1.0.7 |
||
55 | * |
||
56 | * @return \Psr\Http\Message\ResponseInterface |
||
57 | */ |
||
58 | 1 | public function edit(Languageproject $project) |
|
66 | |||
67 | /** |
||
68 | * Get Crowdin Project details. |
||
69 | * |
||
70 | * @param string $login Your Crowdin Account login name. |
||
71 | * @param string $accountKey Account API key (profile settings -> "API & SSO" tab). |
||
72 | * |
||
73 | * @see https://crowdin.com/page/api/get-projects |
||
74 | * @since 1.0.7 |
||
75 | * |
||
76 | * @return \Psr\Http\Message\ResponseInterface |
||
77 | */ |
||
78 | 1 | public function getList($login, $accountKey) |
|
89 | |||
90 | /** |
||
91 | * Get Crowdin Project details. |
||
92 | * |
||
93 | * @since 1.0.5 |
||
94 | * @see https://crowdin.com/page/api/info |
||
95 | * |
||
96 | * @return \Psr\Http\Message\ResponseInterface |
||
97 | */ |
||
98 | 1 | public function getInfo() |
|
103 | |||
104 | /** |
||
105 | * Delete Crowdin project with all translations. |
||
106 | * |
||
107 | * @since 1.0.5 |
||
108 | * @see https://crowdin.com/page/api/delete-project |
||
109 | * |
||
110 | * @return \Psr\Http\Message\ResponseInterface |
||
111 | */ |
||
112 | 1 | public function delete() |
|
117 | } |
||
118 |