-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreadme.txt
54 lines (39 loc) · 1.5 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
=== Jfa Social Media Post ===
Contributors: @jfadev
Donate link: https://jordifernandes.com/donate/
Tags: Instagram,Social Media
Requires at least: 5.8
Tested up to: 5.8
Stable tag: 1.0.0
Requires PHP: 7.0
License: MIT License
License URI: https://github.com/jfadev/jfa-social-media-post/blob/main/LICENSE
This WordPress plugin allows you to retrieve a specific Instagram post and consume it via the REST API.
== Description ==
This WordPress plugin allows you to retrieve a specific Instagram post and consume it via the REST API.
Homepage: [https://jordifernandes.com/jfa-social-media-post/](https://jordifernandes.com/jfa-social-media-post/)
## Config
Enter https://instant-tokens.com and create the `API URL` of your instagram account.
For example:
`https://ig.instant-tokens.com/users/XXXXXX/instagram/XXXXXX/token?userSecret=XXXXX`
## Endpoint
Access the post's JSON at the following endpoint:
`GET /wp-json/api/v2/social_media_post/post/`
##### Return
`
{
"permalink": "https://www.instagram.com/p/XXXXXXXXXXXX/",
"caption": "Caption text",
"media_url": "https://scontent-ams4-1.cdninstagram.com/v/XXX/XXX.jpg?_nc_cat=X&ccb=1-5&_nc_sid=XX&_nc_ohc=XXX&_nc_ht=scontent-ams4-1.cdninstagram.com&edm=XXX",
"url_token": "https://ig.instant-tokens.com/users/XXXXXX/instagram/XXXX/token.js?userSecret=XXXX",
"username": "XXXXXXXX",
"timestamp": "2020-12-14T20:12:36+0000"
}
`
== Frequently Asked Questions ==
== Screenshots ==
1. Admin page.
== Changelog ==
= 1.0.0 =
This is the first version.
== Upgrade Notice ==