Skip to content

Commit c6dc65f

Browse files
committed
Adjust secure mode docs
1 parent 68e9d13 commit c6dc65f

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

README.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Detect Language API Python Client [![Build Status](https://api.travis-ci.org/det
44
Detects language of given text. Returns detected language codes and scores.
55

66
Before using Detect Language API client you have to setup your personal API key.
7-
You can get it by signing up at http://detectlanguage.com
7+
You can get it by signing up at https://detectlanguage.com
88

99
## Installation
1010

@@ -16,6 +16,9 @@ You can get it by signing up at http://detectlanguage.com
1616

1717
detectlanguage.configuration.api_key = "YOUR API KEY"
1818

19+
# Enable secure mode (SSL) if you are passing sensitive data
20+
# detectlanguage.configuration.secure = True
21+
1922
## Usage
2023

2124
### Language detection
@@ -49,7 +52,7 @@ To use batch detection just pass array of texts to `detect` method.
4952

5053
Result is array of detections in the same order as the texts were passed.
5154

52-
[ [ {'isReliable': True, 'confidence': 12.04, 'language': 'es'} ],
55+
[ [ {'isReliable': True, 'confidence': 12.04, 'language': 'es'} ],
5356
[ {'isReliable': True, 'confidence': 9.38, 'language': 'lt'} ] ]
5457

5558
### Getting your account status
@@ -58,8 +61,8 @@ Result is array of detections in the same order as the texts were passed.
5861

5962
#### Result
6063

61-
{ 'status': 'ACTIVE', 'daily_requests_limit': 5000, 'daily_bytes_limit': 1048576,
62-
'bytes': 3151, 'plan': 'FREE', 'date': '2014-03-29', 'requests': 263,
64+
{ 'status': 'ACTIVE', 'daily_requests_limit': 5000, 'daily_bytes_limit': 1048576,
65+
'bytes': 3151, 'plan': 'FREE', 'date': '2014-03-29', 'requests': 263,
6366
'plan_expires': None }
6467

6568
### Getting list detectable languages
@@ -70,14 +73,6 @@ Result is array of detections in the same order as the texts were passed.
7073

7174
Array of language codes and names.
7275

73-
### Secure mode
74-
75-
If you are passing sensitive information to the Detect Language API you can enable SSL.
76-
77-
SSL usage adds data and processing overhead. Please use only if encryption is really necessary.
78-
79-
detectlanguage.configuration.secure = True
80-
8176
## Contribution
8277

8378
You are welcome to patch and send GitHub pull requests.

0 commit comments

Comments
 (0)