I am trying to change a key-value pair in woocommerce using put
in postman, but just cannot get ANY data to change.
I know it works from our ERP system, where I just put the key and value in and it does its magic. But I want to learn and be able to test some other scenarios manually.
GET
and get a correct reply with infoPUT
a specific meta_data field.This is the reply from?GET
?(just made it shorter)
{
"id": 123445,
"name": "Productname",
"meta_data": [
{
"id": 121796,
"key": "_product_checkbox",
"value": "0"
}
]
}
I want to change the value of?_product_checkbox
, but even if I try just?name
, I have no success.
These are my PUT
settings:
staging102.ourdomain.com/wp-json/wc/v3/products/123445?consumer_key=ck_something&consumer_secret=cs_somethingelse
and then I tried in Body > raw > JSON
{"name":"Postmantest"}
and also separately
{
"meta_data": [
{
"key": "_product_checkbox",
"value": "1"
}
]
}
It always returns with status 200 and ok, but there is just nothing at all happening. What am I doing wrong, what have I missed?
Thanks!
]]>{
"contact_form_id": 3728,
"status": "validation_failed",
"message": "One or more fields have an error. Please check and try again.",
"invalid_fields": [
{
"field": "your-name",
"message": " Spamming or your Javascript is disabled !!",
"idref": null,
"error_id": "true-ve-your-name"
}
],
"posted_data_hash": "",
"into": "#true"
}
I intend to send a daily POST
request to my site to check if my form is working (can’t input the url here) like this : https://site.com/wp-json/contact-form-7/v1/contact-forms/3728/feedback
Header: Content-Type: application/json
Body as form data:
your-name: Test run 3
your-email: [email protected]
your-subject: form daily check
your-message: form daily check
_wpcf7_unit_tag: true
How to solve this issue ?
]]>the user still exists and have read/write permissions.
the permalink structure is set to “name of the post”. permalinks settings are set in “pretty” but for the time being I will not use custom endpoints.
in fact, the installation of wordpress and woocommerce is recent, it has nothing more than a plugin that tells me what roles each user has and evidently the only user that exists has the role of administrator who can “manage_woocommerce”.
I’m a bit surprised by the problem, it has already happened to me on other two sites. something is missing but I don’t know what it is.
]]>When I make the request on Postman, the request works as intended, the image gets uploaded.
But when I make the same request (using the code snippet feature of Postman), the request doesn’t work and nothing seems wrong with the request. To be more precise, I get a “401: Unauthorized” error.
Any insights? Could it be a server issue?
I have tried:
RewriteConf %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
myHeaders.remove("Cookie");
Here is a few screenshots:
Could you please let me know how to solve this problem!
]]>Postman: wp_mail has been declared by another plugin or theme, so you won’t be able to use Postman until the conflict is resolved.
Plugin Name:?Newsletter, SMTP, Email marketing and Subscribe forms by Sendinblue
More info that may help?– ~~/wp-content/plugins/mailin/sendinblue.php:329
but also when i disable the “sendinblue” plugin, it’s still does not send ne e-mail from the website, like password reseting, etc.
does anybody noticed a conflict between postman and sendinblue?
I’m using Guzzle for my WP Rest application.
"guzzlehttp/guzzle": "^7.5"
I can do the GET requests without any problems but when it comes to POST request I’m getting a
401 Unauthorized
response: {“code”:”rest_cannot_create”,”message”:”Sorry, you are not allowed to create posts as this user.”,”data”:{“status”:401}}
However, when I’m doing the POST request using Postman I can make POST request without any problems
$response = $client->request('POST', '/wp-json/wp/v2/our-cruises/', [
'json' => [
'title' => 'This is a new test post from REST API',
'content' => 'This is a content from REST API'
]
]);
$body = $response->getBody();
$arr_body = json_decode($body);
print_r($arr_body);
]]>I try to use the API endpoint to send data from a VueJS app, so I use Postman to test my API Endpoint.
But it doesn’t work.
My content-type is : multipart/form-data
The request is “POST”
The URL is : https://xxxxx/wp-json/contact-form-7/v1/contact-forms/15315/feedback/
But I still have this object as a response :
{
"contact_form_id": 15315,
"status": "validation_failed",
"message": "One or more fields have an error. Please check and try again.",
"invalid_fields": [
{
"field": "your-name",
"message": "Please fill out this field.",
"idref": null,
"error_id": "-ve-your-name"
},
{
"field": "your-email",
"message": "Please fill out this field.",
"idref": null,
"error_id": "-ve-your-email"
},
{
"field": "your-subject",
"message": "Please fill out this field.",
"idref": null,
"error_id": "-ve-your-subject"
}
],
"posted_data_hash": "",
"into": "#"
}
I put the data in body -> form-data -> key/value, and I respect the format as it is mentionned above with “your-name”, “your-email”, “your-subject”…
How am I supposed to fill it ? Is there any documentation for this API ?
Thanks !
]]>Got error ‘PHP message: PHP Fatal error: Class Office365PostSMTP\\Transport contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (PostmanTransport::getLogoURL) in ./plugins/post-smtp-extension-office365/inc/Transport.php on line 9’,
]]>I set up a 2nd domain mobilebrakework.com with zoho and the Postman “send email test” fails, but I can successfully send and receive using the email in the zoho email app.
The ‘send email test’ transcript error output:
smtp:tls:plain://smtppro.zoho.com:587
220 mx.zohomail.com SMTP Server ready March 21, 2022 10:22:39 AM PDT
EHLO mobilebrakework.com
250-mx.zohomail.com Hello mobilebrakework.com (li179-132.members.linode.com (HIDDEN))
250-STARTTLS
250 SIZE 53477376
STARTTLS
220 Ready to start TLS.
EHLO mobilebrakework.com
250-mx.zohomail.com Hello mobilebrakework.com (li179-132.members.linode.com (HIDDEN))
250-AUTH LOGIN PLAIN
250 SIZE 53477376
AUTH PLAIN
334
HIDDEN
535 Authentication Failed
Diagnostics appear to pass.
Here is the diag test output:
Mailer: postsmtp
HostName: mobilebrakework.com
cURL Version: 7.68.0
OpenSSL Version: OpenSSL/1.1.1f
OS: Linux mercury 5.4.0-100-generic #113-Ubuntu SMP Thu Feb 3 18:43:29 UTC 2022 x86_64
PHP: Linux 7.4.3 C
PHP Dependencies: iconv=Yes, spl_autoload=Yes, openssl=Yes, sockets=Yes, allow_url_fopen=Yes, mcrypt=No, zlib_encode=Yes
WordPress: 5.9.2 en_US UTF-8
WordPress Theme: Kadence Child
WordPress Plugins: ManageWP - Worker, Advanced Custom Fields, Akismet Anti-Spam, Analytify - Google Analytics Dashboard Widget, Better Search Replace, Cloudflare, Duplicate Page, Fluent Forms, Fluent Forms Pro Add On Pack, CAOS, Kadence Blocks - PRO Extension, Kadence Blocks – Gutenberg Blocks for Page Builder Features, Kadence Pro - Premium addon for the Kadence Theme, Kadence reCAPTCHA, Kadence Starter Templates, Post SMTP, Rank Math SEO, UpdraftPlus - Backup/Restore, Upload Larger Plugins, Wordfence Security, Analytify - Email Notifications, Analytify Pro, Analytify - Google Analytics Dashboard, WP-Optimize - Clean, Compress, Cache
WordPress wp_mail Owner: /var/www/mobilebrakework.com/wp-content/plugins/post-smtp/Postman/PostmanWpMailBinder.php
WordPress wp_mail Filter(s): wp_staticize_emoji_for_email, PostsmtpMailer->get_mail_args
WordPress wp_mail_from Filter(s): wordfence::fixWPMailFromAddress
WordPress phpmailer_init Action(s): PostsmtpMailer->phpmailer_smtp_init
Postman: 2.0.24
Postman Sender Domain (Envelope|Message): mobilebrakework.com | mobilebrakework.com
Postman Prevent Message Sender Override (Email|Name): No | No
Postman Active Transport: SMTP (smtp:tls:plain://smtppro.zoho.com:587)
Postman Active Transport Status (Ready|Connected): Yes | Yes
Postman Deliveries (Success|Fail): 0 | 2
I’ve verified the email and PW multiple time. I turned off 2-factor authentication. I’m stumped. Any help appreciated.
Ken
]]>