Realy fixed the api call this time.
This commit is contained in:
parent
42a130db08
commit
5a79fd89e9
@ -22,14 +22,14 @@ internal interface SelfossService {
|
|||||||
@Query("offset") offset: Int): Call<List<Item>>
|
@Query("offset") offset: Int): Call<List<Item>>
|
||||||
|
|
||||||
|
|
||||||
@Headers("Content-Type: application/json")
|
@Headers("Content-Type: application/x-www-form-urlencoded")
|
||||||
@POST("mark/{id}")
|
@POST("mark/{id}")
|
||||||
fun markAsRead(@Path("id") id: String,
|
fun markAsRead(@Path("id") id: String,
|
||||||
@Query("username") username: String,
|
@Query("username") username: String,
|
||||||
@Query("password") password: String): Call<SuccessResponse>
|
@Query("password") password: String): Call<SuccessResponse>
|
||||||
|
|
||||||
|
|
||||||
@Headers("Content-Type: application/json")
|
@Headers("Content-Type: application/x-www-form-urlencoded")
|
||||||
@POST("unmark/{id}")
|
@POST("unmark/{id}")
|
||||||
fun unmarkAsRead(@Path("id") id: String,
|
fun unmarkAsRead(@Path("id") id: String,
|
||||||
@Query("username") username: String,
|
@Query("username") username: String,
|
||||||
@ -43,14 +43,14 @@ internal interface SelfossService {
|
|||||||
@Query("password") password: String): Call<SuccessResponse>
|
@Query("password") password: String): Call<SuccessResponse>
|
||||||
|
|
||||||
|
|
||||||
@Headers("Content-Type: application/json")
|
@Headers("Content-Type: application/x-www-form-urlencoded")
|
||||||
@POST("starr/{id}")
|
@POST("starr/{id}")
|
||||||
fun starr(@Path("id") id: String,
|
fun starr(@Path("id") id: String,
|
||||||
@Query("username") username: String,
|
@Query("username") username: String,
|
||||||
@Query("password") password: String): Call<SuccessResponse>
|
@Query("password") password: String): Call<SuccessResponse>
|
||||||
|
|
||||||
|
|
||||||
@Headers("Content-Type: application/json")
|
@Headers("Content-Type: application/x-www-form-urlencoded")
|
||||||
@POST("unstarr/{id}")
|
@POST("unstarr/{id}")
|
||||||
fun unstarr(@Path("id") id: String,
|
fun unstarr(@Path("id") id: String,
|
||||||
@Query("username") username: String,
|
@Query("username") username: String,
|
||||||
|
Loading…
Reference in New Issue
Block a user