parameters: (self)
docstring: Gets an authorization token and adds it to the class.
docstring_summary: Gets an authorization token and adds it to the class.
docstring_tokens: Gets an authorization token and adds it to the class .
function: def get_auth(self):
          """
          Gets an authorization token and adds it to the class.
          """
          data = {}
          if not self.email or not self.password:
              raise KeyError("Error! You're missing some variables. You need to export APPS_GOOGLE_EMAIL and APPS_GOOGLE_PASS.")
  
          else:
              data['Email'] = self.email
              data['Passwd'] = self.password
              data['scope'] = self.scope
              data['service'] = self.service
              data['session'] = self.session
  
              r = requests.post("https://www.google.com/accounts/ClientLogin", data=data)
  
              self.auth = r.content.split('\n')[2].split('Auth=')[1]
function_tokens: def get_auth ( self ) : data = { } if not self . email or not self . password : raise KeyError ( "Error! You're missing some variables. You need to export APPS_GOOGLE_EMAIL and APPS_GOOGLE_PASS." ) else : data [ 'Email' ] = self . email data [ 'Passwd' ] = self . password data [ 'scope' ] = self . scope data [ 'service' ] = self . service data [ 'session' ] = self . session r = requests . post ( "https://www.google.com/accounts/ClientLogin" , data = data ) self . auth = r . content . split ( '\n' ) [ 2 ] . split ( 'Auth=' ) [ 1 ]