Skip to content

Commit 163b0d9

Browse files
authored
adding support for private header (#224)
1 parent 3571144 commit 163b0d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

twitter_ads/http.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ def __oauth_request(self):
7474
if 'headers' in self.options:
7575
headers.update(self.options['headers'].copy())
7676

77+
# internal-only
78+
if 'x-as-user' in self._client.options:
79+
headers['x-as-user'] = self._client.options.get('x-as-user')
80+
7781
params = self.options.get('params', None)
7882
data = self.options.get('body', None)
7983
files = self.options.get('files', None)

0 commit comments

Comments
 (0)