php - Softlayer API to pull all invoices -


i successful in pulling excel sheet softlayer's api using php via

$client = \softlayer\soapclient::getclient('softlayer_account', null, $apiusername, $apikey); $invoice = $client->getnextinvoiceexcel(); 

i write location goes on webserver , executes crontab.

i trying find out if can pull excel sheet previous months. through softlayer web portal, able pull information via manually selecting invoice , downloading excel. problem manage several accounts , we'd automate using id , api key pull previous month's invoices.

right can list them using:

$client = \softlayer\soapclient::getclient('softlayer_account', null, $apiusername, $apikey); $user_bill = $client->getopenrecurringinvoices();  print_r($user_bill); 

thank help.

using slapi methods, may you: softlayer_billing_invoice/getexcel.

first, can invoices with: softlayer_account::getopenrecurringinvoices

and then, invoice_ids displayed in last request, can execute (rest example):

https://[username]:[apikey]@api.softlayer.com/rest/v3/softlayer_billing_invoice/[invoice_id]/getexcel  method: 

i hope you.


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -