Re: How to call this method from main method

2016-09-28 Thread Peter Pearson
On Tue, 27 Sep 2016 23:44:11 -0700 (PDT), prasanthk...@gmail.com wrote: [snip] > > if __name__ == '__main__': > > GenAccessToken("This_is_a_Test_QED_MAC_Key_Which_Needs_to_be_at_Least_32_Bytes_Long", > "default", "default", 6, >"g,m,a,s,c,p,d") > > When i am calling the abov

Re: How to call this method from main method

2016-09-28 Thread Ben Finney
prasanthk...@gmail.com writes: > When i am calling the above method from main method You don't have a main method, and you don't specify what “the above method” is. I assume you mean “… calling the ‘GenAccessToken’ function” (which is not a method of anything, in the code you showed). But maybe

How to call this method from main method

2016-09-27 Thread prasanthktgr
#!/sur/bin/env python import sys import jwt import argparse from calendar import timegm from datetime import datetime import uuid class TokenGenerator: def __init__(self, args): self.macKey = args.authzSystemMacKey self.authzSystemId = args.authzSystemId self.permissio