what am i missing
-
I have your plugin setup and have tried post message type and json but i am not getting through. when i try this with an online api test it works fine both json and post can you tell me what im missing please. Also how do i add Access-Control-Allow-Origin to your output?
Here is my debug log.Array ( [customername] => customername [email] => [email protected] [phone] => 5555555555 [needed_treatments] => 5 [how_long] => between 1-3 months [how_long requested_date] => March 28, 2018 [requested_time] => 8AM-12PM [requested_clinic] => of America - Salt Lake City [clinic_id] => 5451 [clinic_email] => info@TEST [clinic_address] => [clinic_phone] => [clinic_text_numbers] => [email protected]; [client_firstname] => client_firstname ) -------------------------------- Array ( [headers] => Requests_Utility_CaseInsensitiveDictionary Object ( [data:protected] => Array ( [date] => Tue, 27 Mar 2018 02:18:09 GMT [server] => Apache [cache-control] => no-cache, private [x-ratelimit-limit] => 60 [x-ratelimit-remaining] => 58 [content-type] => application/json ) ) [body] => [] [response] => Array ( [code] => 200 [message] => OK ) [cookies] => Array ( ) [filename] => [http_response] => WP_HTTP_Requests_Response Object ( [response:protected] => Requests_Response Object ( [body] => [] [raw] => HTTP/1.1 200 OK Date: Tue, 27 Mar 2018 02:18:09 GMT Server: Apache Cache-Control: no-cache, private X-RateLimit-Limit: 60 X-RateLimit-Remaining: 58 Connection: close Transfer-Encoding: chunked Content-Type: application/json [] [headers] => Requests_Response_Headers Object ( [data:protected] => Array ( [date] => Array ( [0] => Tue, 27 Mar 2018 02:18:09 GMT ) [server] => Array ( [0] => Apache ) [cache-control] => Array ( [0] => no-cache, private ) [x-ratelimit-limit] => Array ( [0] => 60 ) [x-ratelimit-remaining] => Array ( [0] => 58 ) [content-type] => Array ( [0] => application/json ) ) ) [status_code] => 200 [protocol_version] => 1.1 [success] => 1 [redirects] => 1 [url] => https://{{ ASK FOR THIS }}}/api/v1/bookings [history] => Array ( [0] => Requests_Response Object ( [body] => <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <meta http-equiv="refresh" content="0;url=https://{{ ASK FOR THIS }}}/api/v1/bookings" /> <title>Redirecting to https://{{ ASK FOR THIS }}}/api/v1/bookings</title> </head> <body> Redirecting to <a href="https://{{ ASK FOR THIS }}}/api/v1/bookings">https://{{ ASK FOR THIS }}}/api/v1/bookings</a>. </body> </html> [raw] => HTTP/1.1 302 Found Date: Tue, 27 Mar 2018 02:18:08 GMT Server: Apache Cache-Control: no-cache, private X-RateLimit-Limit: 60 X-RateLimit-Remaining: 59 Location: https://{{ ASK FOR THIS }}}/api/v1/bookings Connection: close Transfer-Encoding: chunked Content-Type: text/html; charset=UTF-8 <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <meta http-equiv="refresh" content="0;url=https://{{ ASK FOR THIS }}}/api/v1/bookings" /> <title>Redirecting to https://{{ ASK FOR THIS }}}/api/v1/bookings</title> </head> <body> Redirecting to <a href="https://{{ ASK FOR THIS }}}/api/v1/bookings">https://{{ ASK FOR THIS }}}/api/v1/bookings</a>. </body> </html> [headers] => Requests_Response_Headers Object ( [data:protected] => Array ( [date] => Array ( [0] => Tue, 27 Mar 2018 02:18:08 GMT ) [server] => Array ( [0] => Apache ) [cache-control] => Array ( [0] => no-cache, private ) [x-ratelimit-limit] => Array ( [0] => 60 ) [x-ratelimit-remaining] => Array ( [0] => 59 ) [location] => Array ( [0] => https://{{ ASK FOR THIS }}}/api/v1/bookings ) [content-type] => Array ( [0] => text/html; charset=UTF-8 ) ) ) [status_code] => 302 [protocol_version] => 1.1 [success] => [redirects] => 0 [url] => https://{{ ASK FOR THIS }}}/api/v1/bookings [history] => Array ( ) [cookies] => Requests_Cookie_Jar Object ( [cookies:protected] => Array ( ) ) ) ) [cookies] => Requests_Cookie_Jar Object ( [cookies:protected] => Array ( ) ) ) [filename:protected] => [data] => [headers] => [status] => ) )
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘what am i missing’ is closed to new replies.