Help for this page

Select Code to Download


  1. or download this
    sub getToken {
        my $output = `curl -k -s -XPOST (URL) -dgrant_type=password -dclie
    +nt_id=(client ID) -dclient_secret=(client secret) -dusername=(usernam
    +e) -dpassword=(password)`;   
    ...
            die "output not as expected...\n";
        }    
    }