Closed shamo42 closed 8 years ago
I'm using retrofit 2 and am getting a 500 server error no matter what feed url I try to add.
https://github.com/feedbin/feedbin-api/blob/master/content/subscriptions.md#create-subscription If I understand the api correctly, I'm supposed to upload a jsonString like this: {"feed_url": "http://daringfireball.net/index.xml"} AND add a "feed_url" parameter with the url which seems redundant.
In case it helps, the account that was being used is: "number28 AT gmx.net" This is the requestbody using okhttp 2.5.0:
RequestBody requestBody = RequestBody.create(MediaType.parse("application/json"), jsonString.getBytes("UTF-8"));
and this is the retrofit interface:
@POST("subscriptions.json") Observable<Response<ResponseBody>> feedbinAddSubscr( @Body RequestBody input, @Query("feed_url") String feed_url, @Header("Authorization") String authorization );
I would be thankful for any help.
Problem solved. JsonString upload (Requestbody) not necessary. Make sure to include Content-Type header.
I'm using retrofit 2 and am getting a 500 server error no matter what feed url I try to add.
https://github.com/feedbin/feedbin-api/blob/master/content/subscriptions.md#create-subscription If I understand the api correctly, I'm supposed to upload a jsonString like this: {"feed_url": "http://daringfireball.net/index.xml"} AND add a "feed_url" parameter with the url which seems redundant.
In case it helps, the account that was being used is: "number28 AT gmx.net" This is the requestbody using okhttp 2.5.0:
and this is the retrofit interface:
I would be thankful for any help.