Ecommerce Shopify WordPress Discussion

How to Create an Application Password for WordPress API?

I want to make posts to my blog by using the Wordpress API. In order to authenticate my requests, I understand that I have to create a username and password for my private app. This video tries to explain how to create an application password. The problem is, the UI has changed since that video was made. After opening the Users tab, no option appears to create an application. So, how can I create a new app to give it a username and password so I can authenticate my API calls? import requests, json from google.colab import userdata url = f'http://{SITE_NAME}' username = userdata.get('WORDPRESS_USERNAME') password = userdata.get('WORDPRESS_PASSWORD') print(username) print(password) headers = {'Accept': 'application/json'} params = {'status': 'publish'} response = requests.get(url, auth=(username, password), headers=headers, params=params) # process response response_code = response.status_code print(response_code) is_response_404 = response_code == 404 if is_response_404: print("Oops") else: # Decode the JSON response response_text = response.text print(response_text) data = json.loads(response_text) print(data)
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.