Crowdin
in package
Class Crowdin
Table of Contents
Properties
- $branch : BranchApi
- $bundle : BundleApi
- $directory : DirectoryApi
- $distribution : DistributionApi
- $file : FileApi|FileApi
- $glossary : GlossaryApi
- $group : GroupApi
- $issue : IssueApi
- $label : LabelApi
- $language : LanguageApi
- $notification : NotificationApi|NotificationApi
- $organizationWebhook : OrganizationWebhookApi
- $project : ProjectApi
- $report : ReportApi|ReportApi
- $reportArchive : ReportArchiveApi|ReportArchiveApi
- $responseErrorHandler : ResponseErrorHandlerInterface
- $screenshot : ScreenshotApi
- $sourceString : SourceStringApi
- $storage : StorageApi
- $stringComment : StringCommentApi
- $stringsExporterSetting : StringsExporterSettingApi
- $stringTranslation : StringTranslationApi
- $task : TaskApi
- $team : TeamApi
- $teamMember : TeamMemberApi
- $translation : TranslationApi
- $translationMemory : TranslationMemoryApi
- $translationStatus : TranslationStatusApi
- $user : UserApi|UserApi
- $vendor : VendorApi
- $webhook : WebhookApi
- $workflowStep : WorkflowStepApi
- $workflowTemplate : WorkflowTemplateApi
- $accessToken : string
- $apis : array<string|int, mixed>
- $baseUri : string
- $client : CrowdinHttpClientInterface
- $isEnterprise : bool
- $organization : string
- $services : array<string|int, mixed>
- $servicesEnterprise : mixed
Methods
- apiRequest() : mixed
- getAccessToken() : string
- getBaseUri() : string
- getClient() : CrowdinHttpClientInterface
- getResponseErrorHandler() : ResponseErrorHandlerInterface
- setAccessToken() : void
- setBaseUri() : void
- setClient() : void
- setOrganization() : void
- setResponseErrorHandler() : void
- getFullUrl() : string
- request() : mixed
- updateBaseUri() : self
Properties
$branch
public
BranchApi
$branch
$bundle
public
BundleApi
$bundle
$directory
public
DirectoryApi
$directory
$distribution
public
DistributionApi
$distribution
$file
public
FileApi|FileApi
$file
$glossary
public
GlossaryApi
$glossary
$group
public
GroupApi
$group
$issue
public
IssueApi
$issue
$label
public
LabelApi
$label
$language
public
LanguageApi
$language
$notification
public
NotificationApi|NotificationApi
$notification
$organizationWebhook
public
OrganizationWebhookApi
$organizationWebhook
$project
public
ProjectApi
$project
$report
public
ReportApi|ReportApi
$report
$reportArchive
public
ReportArchiveApi|ReportArchiveApi
$reportArchive
$responseErrorHandler
public
ResponseErrorHandlerInterface
$responseErrorHandler
$screenshot
public
ScreenshotApi
$screenshot
$sourceString
public
SourceStringApi
$sourceString
$storage
public
StorageApi
$storage
$stringComment
public
StringCommentApi
$stringComment
$stringsExporterSetting
public
StringsExporterSettingApi
$stringsExporterSetting
$stringTranslation
public
StringTranslationApi
$stringTranslation
$task
public
TaskApi
$task
$team
public
TeamApi
$team
$teamMember
public
TeamMemberApi
$teamMember
$translation
public
TranslationApi
$translation
$translationMemory
public
TranslationMemoryApi
$translationMemory
$translationStatus
public
TranslationStatusApi
$translationStatus
$user
public
UserApi|UserApi
$user
$vendor
public
VendorApi
$vendor
$webhook
public
WebhookApi
$webhook
$workflowStep
public
WorkflowStepApi
$workflowStep
$workflowTemplate
public
WorkflowTemplateApi
$workflowTemplate
$accessToken
protected
string
$accessToken
$apis
protected
array<string|int, mixed>
$apis
= []
$baseUri
protected
string
$baseUri
= 'https://api.crowdin.com/api/v2'
$client
protected
CrowdinHttpClientInterface
$client
$isEnterprise
protected
bool
$isEnterprise
= false
$organization
protected
string
$organization
$services
protected
array<string|int, mixed>
$services
= ['storage', 'language', 'project', 'task', 'issue', 'branch', 'glossary', 'stringsExporterSetting', 'stringTranslation', 'stringComment', 'directory', 'label', 'user', 'screenshot', 'file', 'machineTranslationEngine', 'report', 'sourceString', 'translationMemory', 'webhook', 'translation', 'translationStatus', 'distribution', 'bundle', 'notification', 'organizationWebhook', 'reportArchive']
$servicesEnterprise
protected
mixed
$servicesEnterprise
= ['storage', 'language', 'group', 'project', 'task', 'issue', 'branch', 'glossary', 'stringsExporterSetting', 'stringTranslation', 'stringTranslationApproval', 'stringComment', 'directory', 'label', 'vendor', 'user', 'screenshot', 'workflowTemplate', 'workflowStep', 'file', 'machineTranslationEngine', 'report', 'sourceString', 'translationMemory', 'webhook', 'translation', 'translationStatus', 'distribution', 'team', 'teamMember', 'bundle', 'notification', 'organizationWebhook', 'reportArchive']
Methods
apiRequest()
public
apiRequest(string $method, string $path[, ResponseDecoratorInterface|null $decorator = null ][, array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $method : string
- $path : string
- $decorator : ResponseDecoratorInterface|null = null
- $options : array<string|int, mixed> = []
getAccessToken()
public
getAccessToken() : string
Return values
stringgetBaseUri()
public
getBaseUri() : string
Return values
stringgetClient()
public
getClient() : CrowdinHttpClientInterface
Return values
CrowdinHttpClientInterfacegetResponseErrorHandler()
public
getResponseErrorHandler() : ResponseErrorHandlerInterface
Return values
ResponseErrorHandlerInterfacesetAccessToken()
public
setAccessToken(string $accessToken) : void
Parameters
- $accessToken : string
setBaseUri()
public
setBaseUri(string $baseUri) : void
Parameters
- $baseUri : string
setClient()
public
setClient(CrowdinHttpClientInterface $client) : void
Parameters
- $client : CrowdinHttpClientInterface
setOrganization()
public
setOrganization(string|null $organization) : void
Parameters
- $organization : string|null
setResponseErrorHandler()
public
setResponseErrorHandler(ResponseErrorHandlerInterface $responseErrorHandler) : void
Parameters
- $responseErrorHandler : ResponseErrorHandlerInterface
getFullUrl()
protected
getFullUrl(string $path) : string
Parameters
- $path : string
Return values
stringrequest()
protected
request(string $method, string $uri[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $method : string
- $uri : string
- $options : array<string|int, mixed> = []
updateBaseUri()
protected
updateBaseUri() : self