{"id":11086169,"date":"2019-01-14T10:56:30","date_gmt":"2019-01-14T10:56:30","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/rest-api-and-php\/"},"modified":"2019-01-14T10:56:30","modified_gmt":"2019-01-14T10:56:30","slug":"rest-api-and-php","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/rest-api-and-php\/","title":{"rendered":"rest api AND PHP"},"content":{"rendered":"<p>Hi, I use Printful integration with my woocommerce shop. I have NO idea, if this is the right place to post- I always seem to post in wrong places. I know no code. My health check gave me this morning the following:<\/p>\n<p>REST API availability \tThe REST API call gave the following unexpected result: (401) {&#8220;code&#8221;:&#8221;rest_forbidden_context&#8221;,&#8221;message&#8221;:&#8221;Sorry, you are not allowed to edit posts in this post type.&#8221;,&#8221;data&#8221;:{&#8220;status&#8221;:401}}. <\/p>\n<p>My shop seems to working ok and at Printful&#8217;s site everything is fine.<\/p>\n<p>What does this actually mean this error code? I also had the following concerning my PHP:<\/p>\n<p>PHP Extensions \t<\/p>\n<p>    The optional module, libsodium, is not installer, or has been disabled.<br \/>\n    The optional module, imagick, is not installer, or has been disabled.<\/p>\n<p>My shop seems to work ok, and I&#8217;ve contacted my host provider about the PHP.<\/p>\n","protected":false},"template":"","class_list":["post-11086169","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11086169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11086169\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=11086169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}