Untitled
unknown
kotlin
3 years ago
947 B
8
Indexable
interface SearchAPI {
@Headers(
"accept:*/*",
"accept-language: tr-TR,tr;q=0.9",
"content-type: application/json",
"sec-ch-ua: Opera;v=95, Chromium;v=109, Not;A=Brand;v=24",
"sec-ch-ua-mobile: ?0",
"sec-ch-ua-platform: Windows",
"sec-fetch-dest: empty",
"sec-fetch-mode: same-origin",
"sec-fetch-site: same-origin",
"x-goog-visitor-id: CgtxYnpLN0dGTE9BNCjbn92fBg%3D%3D",
"x-youtube-bootstrap-logged-in: false",
"x-youtube-client-name: 67",
"x-youtube-client-version: 1.20230220.01.00",
"origin: https://music.youtube.com",
"referer: https://music.youtube.com/"
)
@POST("youtubei/v1/music/get_search_suggestions")
suspend fun searchSong(
@Query("key") key: String,
@Query("prettyPrint") prettyPrint: Boolean,
@Body searchBody : SearchBody
): SearchEntity
}Editor is loading...