kenken999 commited on
Commit
51d37a8
·
1 Parent(s): a0816e0
chat_history.db CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8fb7c0fc8a05e8d0809353416f7037f323645a0a5ed6c6eb9804b82917a3e6dd
3
  size 1867776
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d366bbd34ee184846b6e794b69eb4196c54b4753bc965979870c671036d3877b
3
  size 1867776
workspace/testaaa.txt ADDED
File without changes
workspace/wordpress_rest_connector.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+
3
+ def connect_wordpress_rest(url, username, password):
4
+ response = requests.post(f'{url}/wp-json/wp/v2/token',
5
+ auth=(username, password))
6
+ if response.status_code == 200:
7
+ token = response.json()
8
+ return token
9
+ else:
10
+ return None