Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Commit c5fb9a9

Browse files
committed
subscription POST and DELETE require signed header
1 parent 64641a8 commit c5fb9a9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

instagram/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,14 @@ def _make_subscription_action(method, include=None, exclude=None):
224224
accepts_parameters.extend(include)
225225
if exclude:
226226
accepts_parameters = [x for x in accepts_parameters if x not in exclude]
227+
signature = False if method == 'GET' else True
227228
return bind_method(
228229
path="/subscriptions",
229230
method=method,
230231
accepts_parameters=accepts_parameters,
231232
include_secret=True,
232-
objectify_response=False
233+
objectify_response=False,
234+
signature=signature,
233235
)
234236

235237
create_subscription = _make_subscription_action('POST')

0 commit comments

Comments
 (0)