MCPcopy
hub / github.com/legendary-gl/legendary / get_ownership_token

Method get_ownership_token

legendary/api/egs.py:152–159  ·  view source on GitHub ↗
(self, namespace, catalog_item_id)

Source from the content-addressed store, hash-verified

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')

Callers 1

get_launch_parametersMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected