php - Where shall i put woocommerce rest api library files -
i have no idea how work woocommerce library files, paste files , paste code.
i have found following code :
<?php require_once( 'lib/woocommerce-api.php' ); $options = array( 'debug' => true, 'return_as_array' => false, 'validate_url' => false, 'timeout' => 30, 'ssl_verify' => false, ); try { $client = new wc_api_client( 'http://your-store-url.com', 'ck_enter_your_consumer_key', 'cs_enter_your_consumer_secret', $options ); } catch ( wc_api_client_exception $e ) { echo $e->getmessage() . php_eol; echo $e->getcode() . php_eol; if ( $e instanceof wc_api_client_http_exception ) { print_r( $e->get_request() ); print_r( $e->get_response() ); } }
but still have no idea, put code, uploads/add other library files.
i using rest api library kloon.
this may check post put library files in wordpress...
https://wordpress.stackexchange.com/questions/31726/where-to-put-third-party-php-library
Comments
Post a Comment