BetaOptionalconfig: IaAuthConfigA dictionary used to configure your session.
To be passed on to this session's method calls.
a new IaSession object
import { getSession } from 'internetarchive';
config = {'s3': {'access': 'foo', 'secret': 'bar'}};
s = getSession(config);
s.accessKey;
'foo'
// From the session object, you can access all of the functionality of the internetarchive API
item = s.getItem('nasa');
item.download();
// nasa: success
s.getTasks({taskIds:[31643513]})[0].server
Returns a new IaSession object. The IaSession object is the main interface to the internetarchive library. It allows you to persist certain parameters across tasks.