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

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -