(self, namespace, catalog_item_id)
| 150 | return r.json() |
| 151 | |
| 152 | def get_ownership_token(self, namespace, catalog_item_id): |
| 153 | user_id = self.user.get('account_id') |
| 154 | r = self.session.post(f'https://{self._ecommerce_host}/ecommerceintegration/api/public/' |
| 155 | f'platforms/EPIC/identities/{user_id}/ownershipToken', |
| 156 | data=dict(nsCatalogItemId=f'{namespace}:{catalog_item_id}'), |
| 157 | timeout=self.request_timeout) |
| 158 | r.raise_for_status() |
| 159 | return r.content |
| 160 | |
| 161 | def get_external_auths(self): |
| 162 | user_id = self.user.get('account_id') |
no outgoing calls
no test coverage detected