Where shall i put woocommerce rest api library files
<p>I have no idea how to work with WooCommerce library files, where to paste those files and where to paste the code.</p>
<p>I have found the following code :</p>
<pre><code>&lt;?php

require_once( 'lib/woocommerce-api.php' );

$options = array(
    'debug'           =&gt; true,
    'return_as_array' =&gt; false,
    'validate_url'    =&gt; false,
    'timeout'         =&gt; 30,
    'ssl_verify'      =&gt; 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-&gt;getMessage() . PHP_EOL;
    echo $e-&gt;getCode() . PHP_EOL;

    if ( $e instanceof WC_API_Client_HTTP_Exception ) {

        print_r( $e-&gt;get_request() );
        print_r( $e-&gt;get_response() );
    }
}
</code></pre>
<p>But still have no idea, where to put this code,  uploads/add other library files.</p>
<p>I am using <a href="https://github.com/kloon/WooCommerce-REST-API-Client-Library" rel="nofollow noreferrer">REST API library</a> by Kloon.</p>