-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathINSTALL.txt
40 lines (30 loc) · 1.71 KB
/
INSTALL.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
File API sdk is ready to be used 'as is'.
All necessary files are in smartlingApiSdk.
So you could place directory smartlingApiSdk someplace in your project and use it as shown in example.
Example.
Example script is placed in separate directory named 'example'.
It should give you a examples of initializing API and using api calls.
To run example you should set up smartling credentials for your project like this:
use environment variables:
export SL_LOCALE=**-**
export SL_USER_IDENTIFIER=******************************
export SL_USER_SECRET=*******************************************************
#optional
export SL_ACCOUNT_UID=******* #required only to list projects api call
export SL_PROJECT_ID=******* #required for api calls `projects` and `project_details`
or for Windows users set credential explicitly in class smartlingApiSdk/Credentials.py
After credentials are set try our examples, each API has own example covering almost every API call.
You can start with Strings API example:
from smartlingApiSdk.example.StringsExample import example
example()
or try other examples:
from smartlingApiSdk.example.FilesSimpleExample import example
from smartlingApiSdk.example.FilesExample import example
from smartlingApiSdk.example.AccountProjectsExample import example
from smartlingApiSdk.example.ContextExample import example
from smartlingApiSdk.example.EstimatesExample import example
from smartlingApiSdk.example.JobsExample import example
from smartlingApiSdk.example.JobBatchesV2Example import example
from smartlingApiSdk.example.TagsExample import example
from smartlingApiSdk.example.MultipleAccountsExample import example
from smartlingApiSdk.example.MultipleProjectsExample import example