eluv-io / elv-live-js

Eluvio Live JavaScript SDK
MIT License
4 stars 3 forks source link

add admin sales cmd #149

Closed elv-todd closed 11 months ago

elv-todd commented 11 months ago

will let the reviewers decide format

https://github.com/eluv-io/elv-live-js/pull/148 uses try/catch under the covers

this PR uses explicit:

$ ./elv-live tenant_primary_sales $TENANT iq__MDEUdJkpiZW7tbPSh9FfEpZfcbK --admin
elv-todd commented 11 months ago

will do, i like it

elv-todd commented 11 months ago

test with, eg,

$ ./elv-live tenant_primary_sales iten3wk48FXDEcnTLsQmQaAizfWWB9M6 iq__MDEUdJkpiZW7tbPSh9FfEpZfcbK --offset 1 --as_url https://host-76-74-28-232.contentfabric.io/as --admin | head
Tenant Primary Sales: iten3wk48FXDEcnTLsQmQaAizfWWB9M6 iq__MDEUdJkpiZW7tbPSh9FfEpZfcbK
Processor:
Offset: 1
CSV: undefined
use_admin_api: true
Network: main
- ident: 'stripe:cus_OYoKXzWIq5hnbw'
  trans_id: M-6JbRP7anuXTm49MaMamD5r
  addr: '0x172d794c293586ed680b9bc6c1d086f041f53214'
  name: 'Switchyard Sessions Collector''s Edition: Bronze'