Skip to content

Commit fd7948d

Browse files
authored
Remove __init__.py, change CHANGELOG.md to point to Github release notes, fix docstrings and bump version (#44)
1 parent 82336d2 commit fd7948d

File tree

6 files changed

+115
-115
lines changed

6 files changed

+115
-115
lines changed

CHANGELOG.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
11
# CHANGELOG
22

3-
## 0.2.0
4-
5-
Released on March 29, 2023
6-
7-
- Bug fix for TypeError due to use of CaseInsensitiveDict, which was causing runtime errors for applications using python 3.7/3.8 (#16)
8-
9-
## 0.1.0
10-
11-
Released on February 15, 2023
12-
13-
- Initial release
3+
Please, see [the GitHub release notes](https://github.com/linkedin-developers/linkedin-api-python-client/releases).

__init__.py

Whitespace-only changes.

linkedin_api/clients/auth/response.py

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,28 @@ def __init__(
2323
)
2424
self.access_token = access_token
2525
"""
26-
The 3-legged access token.
27-
"""
26+
The 3-legged access token.
27+
"""
2828

2929
self.expires_in = expires_in
3030
"""
31-
The TTL for the access token, in seconds.
32-
"""
31+
The TTL for the access token, in seconds.
32+
"""
3333

3434
self.refresh_token = refresh_token
3535
"""
36-
The refresh token value. Only available if refresh tokens are enabled.
37-
"""
36+
The refresh token value. Only available if refresh tokens are enabled.
37+
"""
3838

3939
self.refresh_token_expires_in = refresh_token_expires_in
4040
"""
41-
The TTL for the refresh token, in seconds. Only available if refresh tokens are enabled.
42-
"""
41+
The TTL for the refresh token, in seconds. Only available if refresh tokens are enabled.
42+
"""
4343

4444
self.scope = scope
4545
"""
46-
A comma-separated list of scopes authorized by the member (e.g. "r_liteprofile,r_ads").
47-
"""
46+
A comma-separated list of scopes authorized by the member (e.g. "r_liteprofile,r_ads").
47+
"""
4848

4949

5050
class AccessToken2LResponse(BaseAuthResponse):
@@ -54,13 +54,13 @@ def __init__(self, status_code, url, headers, response, access_token, expires_in
5454
)
5555
self.access_token = access_token
5656
"""
57-
The two-legged access token.
58-
"""
57+
The two-legged access token.
58+
"""
5959

6060
self.expires_in = expires_in
6161
"""
62-
The TTL of the access token, in seconds.
63-
"""
62+
The TTL of the access token, in seconds.
63+
"""
6464

6565

6666
class IntrospectTokenResponse(BaseAuthResponse):
@@ -84,43 +84,43 @@ def __init__(
8484
)
8585
self.active = active
8686
"""
87-
Boolean flag whether the token is a valid, active token.
88-
"""
87+
Boolean flag whether the token is a valid, active token.
88+
"""
8989

9090
self.auth_type = auth_type
9191
"""
92-
The auth type of the token ("2L", "3L" or "Enterprise_User")
93-
"""
92+
The auth type of the token ("2L", "3L" or "Enterprise_User")
93+
"""
9494

9595
self.authorized_at = authorized_at
9696
"""
97-
Epoch time in seconds, indicating when the token was authorized.
98-
"""
97+
Epoch time in seconds, indicating when the token was authorized.
98+
"""
9999

100100
self.client_id = client_id
101101
"""
102-
Developer application client ID.
103-
"""
102+
Developer application client ID.
103+
"""
104104

105105
self.created_at = created_at
106106
"""
107-
Epoch time in seconds, indicating when this token was originally issued.
108-
"""
107+
Epoch time in seconds, indicating when this token was originally issued.
108+
"""
109109

110110
self.expires_at = expires_at
111111
"""
112-
Epoch time in seconds, indicating when this token will expire.
113-
"""
112+
Epoch time in seconds, indicating when this token will expire.
113+
"""
114114

115115
self.scope = scope
116116
"""
117-
A string containing a comma-separated list of scopes associated with this token. This is only returned for 3-legged member tokens.
118-
"""
117+
A string containing a comma-separated list of scopes associated with this token. This is only returned for 3-legged member tokens.
118+
"""
119119

120120
self.status = status
121121
"""
122-
The token status ("revoked", "expired", or "active")
123-
"""
122+
The token status ("revoked", "expired", or "active")
123+
"""
124124

125125

126126
class RefreshTokenExchangeResponse(BaseAuthResponse):
@@ -140,20 +140,20 @@ def __init__(
140140
)
141141
self.access_token = access_token
142142
"""
143-
The 3-legged access token.
144-
"""
143+
The 3-legged access token.
144+
"""
145145

146146
self.expires_in = expires_in
147147
"""
148-
The TTL for the access token, in seconds.
149-
"""
148+
The TTL for the access token, in seconds.
149+
"""
150150

151151
self.refresh_token = refresh_token
152152
"""
153-
The refresh token value.
154-
"""
153+
The refresh token value.
154+
"""
155155

156156
self.refresh_token_expires_in = refresh_token_expires_in
157157
"""
158-
The TTL for the refresh token, in seconds.
159-
"""
158+
The TTL for the refresh token, in seconds.
159+
"""

linkedin_api/clients/common/response.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@ def __init__(
1212
):
1313
self.status_code = status_code
1414
"""
15-
Response status code (e.g. 200, 404, 500, etc.)
16-
"""
15+
Response status code (e.g. 200, 404, 500, etc.).
16+
"""
1717

1818
self.response = response
1919
"""
20-
The raw requests.Response object
21-
"""
20+
The raw requests.Response object.
21+
"""
2222

2323
self.headers = headers
2424
"""
25-
A case-insensitive dictionary of response headers
26-
"""
25+
A case-insensitive dictionary of response headers.
26+
"""
2727

2828
self.url = url
2929
"""
30-
The final URL location of the response
31-
"""
30+
The final URL location of the response.
31+
"""

0 commit comments

Comments
 (0)