Skip to content

Commit 67f6683

Browse files
committed
Remove all references to Secret and ApiKey #55
1 parent 4a98d3a commit 67f6683

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ You can get your API credentials at https://www.convertapi.com/a
3131
```python
3232
import convertapi
3333

34-
convertapi.api_credentials = 'your-api-secret-or-token'
34+
convertapi.api_credentials = 'api-token'
3535
```
3636

3737
#### Proxy configuration
@@ -41,7 +41,7 @@ If you need to use a proxy, you can specify it using `HTTPS_PROXY` environment v
4141
Example:
4242

4343
```
44-
CONVERT_API_SECRET=secret HTTPS_PROXY=https://user:[email protected]:9000/ python convert_word_to_pdf_and_png.py
44+
API_TOKEN=api-token HTTPS_PROXY=https://user:[email protected]:9000/ python convert_word_to_pdf_and_png.py
4545
```
4646

4747
### File conversion
@@ -123,7 +123,7 @@ Find more advanced examples in the [/examples](https://github.com/ConvertAPI/con
123123

124124
## Development
125125

126-
Execute `CONVERT_API_SECRET=your_secret nosetests --nocapture` to run the tests.
126+
Execute `API_TOKEN=api-token nosetests --nocapture` to run the tests.
127127

128128
## Contributing
129129

examples/conversions_chaining.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import os
33
import tempfile
44

5-
convertapi.api_credentials = os.environ['CONVERT_API_SECRET'] # your api secret or token
5+
convertapi.api_credentials = os.environ['API_TOKEN'] # your api token
66

77
# Short example of conversions chaining, the PDF pages extracted and saved as separated JPGs and then ZIP'ed
88
# https://www.convertapi.com/doc/chaining

examples/convert_stream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import io
44
import tempfile
55

6-
convertapi.api_credentials = os.environ['CONVERT_API_SECRET'] # your api secret or token
6+
convertapi.api_credentials = os.environ['API_TOKEN'] # your api token
77

88
# Example of using content stream to convert to pdf
99
# https://www.convertapi.com/txt-to-pdf

examples/convert_url_to_pdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import os
33
import tempfile
44

5-
convertapi.api_credentials = os.environ['CONVERT_API_SECRET'] # your api secret or token
5+
convertapi.api_credentials = os.environ['API_TOKEN'] # your api token
66

77
# Example of converting Web Page URL to PDF file
88
# https://www.convertapi.com/web-to-pdf

examples/convert_word_to_pdf_and_png.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import os
33
import tempfile
44

5-
convertapi.api_credentials = os.environ['CONVERT_API_SECRET'] # your api secret or token
5+
convertapi.api_credentials = os.environ['API_TOKEN'] # your api token
66

77
# Example of saving Word docx to PDF and to PNG
88
# https://www.convertapi.com/docx-to-pdf

examples/create_pdf_thumbnail.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import os
33
import tempfile
44

5-
convertapi.api_credentials = os.environ['CONVERT_API_SECRET'] # your api secret or token
5+
convertapi.api_credentials = os.environ['API_TOKEN'] # your api token
66

77
# Example of extracting first page from PDF and then chaining conversion PDF page to JPG.
88
# https://www.convertapi.com/pdf-to-extract

examples/retrieve_user_information.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import convertapi
22
import os
33

4-
convertapi.api_credentials = os.environ['CONVERT_API_SECRET'] # your api secret or token
4+
convertapi.api_credentials = os.environ['API_TOKEN'] # your api token
55

66
# Retrieve user information
77
# https://www.convertapi.com/doc/user

examples/split_and_merge_pdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import os
33
import tempfile
44

5-
convertapi.api_credentials = os.environ['CONVERT_API_SECRET'] # your api secret or token
5+
convertapi.api_credentials = os.environ['API_TOKEN'] # your api token
66

77
# Example of extracting first and last pages from PDF and then merging them back to new PDF.
88
# https://www.convertapi.com/pdf-to-split

0 commit comments

Comments
 (0)