Ejemplo n.º 1
0
 def _report(self):
     success, value = login_using_token()
     if success:
         endpoint = '/apps/{}/installed'.format(self._app['id'])
         gs = get_glob_session()
         if gs:
             success, text, data = request_wrapper('post', endpoint,
                                                   session=gs.session)
Ejemplo n.º 2
0
def _report_share_opened(item_id):
    success, value = login_using_token()
    if success:
        endpoint = '/share/{}/installed'.format(item_id)
        gs = get_glob_session()
        if gs:
            success, text, data = request_wrapper('post', endpoint,
                                                  session=gs.session)
Ejemplo n.º 3
0
 def _report(self):
     success, value = login_using_token()
     if success:
         endpoint = '/apps/{}/installed'.format(self._app['id'])
         gs = get_glob_session()
         if gs:
             success, text, data = request_wrapper('post',
                                                   endpoint,
                                                   session=gs.session)