Woocommerce API

I can connect… to woocommerce…successuly… but…

How do I store the generated key per the woo docs …file_get_contents(“php://input”); to a variable so I can save it to the user database and use it to make api calls…