How to test the wordpress and call json http api