[API] Hướng dẫn sử dụng postman để thực hiện update bài viết (ok)
https://app.gitbook.com/@wordpress-lionel/s/project/basic-authentication-ok
Bước 1: Cài plugin https://codeload.github.com/WP-API/Basic-Auth/zip/master
2KB
Basic-Auth-master.zip
archive
Bước 2: Sử dụng postman
Chú ý chúng ta có thể mã hóa: Base64 Decode and Encode - Online
Ví dụ 1: The authorization header must be base64 encoded. For example, if the credential uses Aladdin
as the username and OpenSesame
as the password, then the field’s value is the base64-encoding of Aladdin:OpenSesame
, or QWxhZGRpbjpPcGVuU2VzYW1l
.
Ví dụ 2: wordpress:wordpress =>>>>> Authorization: Basic d29yZHByZXNzOndvcmRwcmVzcw==
Link: https://www.base64encode.org
Đọc thêm hướng dẫn Basic Authentication
Previous[API] How to easily add a custom REST api to WordPressNext[API] Nghiên cứu về class WP_REST_Posts_Controller (ok)
Last updated