Comparing version 2.0.1 to 2.0.11
22
api.js
@@ -215,2 +215,22 @@ const Wrape = require("wrape"); | ||
}, | ||
likes: { | ||
help: "Get liked posts of an user", | ||
path: "/public/likes", | ||
params: { | ||
secUid: { | ||
required: true, | ||
validate: "^(.*?){30,}$", | ||
help: "The user secUid", | ||
example: "MS4wLjABAAAAsHntXC3s0AvxcecggxsoVa4eAiT8OVafVZ4OQXxy-9htpnUi0sOYSr0kGGD1Loud" | ||
}, | ||
count: { | ||
example: 5, | ||
default: 30, | ||
validate: "^[0-9]{1,2}$" | ||
}, | ||
cursor: { | ||
validate: "^[0-9]+$" | ||
} | ||
}, | ||
}, | ||
video: { | ||
@@ -653,3 +673,3 @@ path: "/public/video", | ||
followers: { | ||
help: "Get followers list", | ||
help: "[Deprecated] Get followers list", | ||
path: "/user/followers", | ||
@@ -656,0 +676,0 @@ params: { |
{ | ||
"name": "tikapi", | ||
"version": "2.0.1", | ||
"version": "2.0.11", | ||
"description": "An fully managed unofficial TikTok app with OAuth capabilities", | ||
@@ -5,0 +5,0 @@ "main": "api.js", |
@@ -26,3 +26,3 @@ # Unofficial TikTok API | ||
SDK And Documenation made with https://github.com/elis-k/wrape | ||
SDK And Documentation made with https://github.com/elis-k/wrape | ||
@@ -33,2 +33,3 @@ - [public](#api-public) | ||
- [posts](#api-public-posts) | ||
- [liked](#api-public-likes) | ||
- [video](#api-public-video) | ||
@@ -319,2 +320,25 @@ - [discover](#api-public-discover) | ||
<h3 id="api-public-likes">Liked</h3> | ||
Get liked posts of an user | ||
```javascript | ||
api.public.likes({ | ||
secUid: "MS4wLjABAAAAsHntXC3s0AvxcecggxsoVa4eAiT8OVafVZ4OQXxy-9htpnUi0sOYSr0kGGD1Loud", //required | Validate: ^(.*?){30,}$ | ||
//count: 5, //optional | Validate: ^[0-9]{1,2}$ | ||
//cursor: "<any>", //optional | Validate: ^[0-9]+$ | ||
}) | ||
``` | ||
<details> | ||
<summary>Request</summary> | ||
**GET** /public/likes | ||
|Parameter|Location|Required|Description| | ||
|--|--|--|--| | ||
secUid|query|true|The user secUid | ||
count|query|false| | ||
cursor|query|false| | ||
</details> | ||
<h3 id="api-public-video">Video</h3> | ||
@@ -321,0 +345,0 @@ |
81466
1344
1753