Is it possible to authenticate to iprint from a command line?

If not, is there an API call that will let me authenticate to iPrint from a
program?

Thanks!