constutil=require('util');varBraango=require('braango');vardefaultClient=Braango.ApiClient.instance;/**** @author braango* * Sample code showing how to delete banners for a personnel* *///TEST auth token. Please contact//sales@braango.com to have one//created for youvarauth_token=defaultClient.authentications['auth_token'];auth_token.apiKey='ISNWF0P30WM0CMK';varapiInstance=newBraango.BannersApi();//String | id of _sub_dealer_varsubdealerid="subdealers2003";//String | id of _personnel_varsalespersonid="2244b9fd-ecc6-4c67-b185-fd9f420d3aa9";//String | Banner type - `client` , `dealer` , `supervisor`varbannertype="client";//string | API Key to access this dealer's resources. //Value was returned when create_account api //was called and dealer was created first timevarapiKey="ISNMdzuNiKG7jhl9d9v";//String | Dealer or partner is accessing this APIvaraccountType="partner";apiInstance.deleteBanners(subdealerid,salespersonid,bannertype,apiKey,accountType).then(function(data){console.log('API called successfully. Returned data: '+util.inspect(data,false,null));},function(error){console.error(error);});
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.