Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @POST("api/auth/login")
- Call<UserResponse> loginUser(@Body UserLoginRequest userLoginRequest);
- @POST("api/auth/register")
- Call<UserResponse> registrationUser(@Body UserCreateAccRequest userCreateAccRequest);
- @POST("api/auth/facebook")
- Call<UserResponse> registrationUserWithFacebook(@Body TokenFacebook token);
- @POST("api/auth/google")
- Call<UserResponse> registrationUserWithGoolge(@Body TokenGoogle token);
- @GET("api/programs")
- Call<MainResponse> getAllPrograms(@Header("Authorization") String token);
- @POST("api/auth/password/reset")
- Call<ResponseBody> resetPassword(@Body RequestBody body);
- @POST("api/auth/password/redirect/{hash}")
- Call<ResponseBody> createNewPassword(@Path("hash") String hash, @Body RequestBody body);
- @GET("api/me")
- Call<UserResponse> getMyProfile(@Header("Authorization") String token);
- @Headers({"Content-Type: application/json"})
- @PUT("api/me")
- Call<UserResponse> updateMyProfile(@Header("Authorization") String token, @Body UserResponse newData);
- @GET("api/auth/refresh")
- Call<ResponseBody> updateToken(@Header("Authorization") String token);
- @POST("api/meditations/{id}/report")
- Call<ResponseBody> markDone(@Header("Authorization") String string, @Path("id") long sessionId, @Body RequestBody duration);
- @Multipart
- @POST("api/me/avatar")
- Call<ResponseBody> updateAvatar(@Header("Authorization") String token, @Part MultipartBody.Part part);
- @GET("api/notification/schedule")
- Call<ReminderModel> getReminder(@Header("Authorization") String token);
- @POST("api/notification/schedule")
- Call<ReminderModel> createReminder(@Header("Authorization") String string, @Body ReminderModel reminderModel);
- @PUT("api/notification/schedule")
- Call<ReminderModel> updateReminder(@Header("Authorization") String string, @Body ReminderModel reminderModel);
- @GET("api/notification")
- Call<ReminderRandomNotification> getRandomNotification(@Header("Authorization") String token);
- @GET("api/sessions/{id}/download")
- Call<DownloadModel> downloadSessionsById(@Header("Authorization") String token, @Path("id") long sessionId);
- @GET("api/statistics")
- Call<GetStatisticResponse> getStatistic(@Header("Authorization") String token);
- @Headers({"Content-Type: application/json"})
- @POST("api/statistics/full-calendar")
- Call<GetCalendarResponse> getStatisticCalendar(@Header("Authorization") String token, @Body RequestBody body);
- @GET("api/sessions/{id}/offline-play")
- Call<OfflineResponce> getSessionOffline(@Header("Authorization") String token, @Path("id") long sessionId);
- @POST("api/sessions/offline-play/report")
- Call<ResponseBody> sendOfflinePlay(@Header("Authorization") String token, @Body RequestBody body);
- @PUT("/api/me/password")
- Call<ResponseBody> changePassword(@Header("Authorization") String token, @Body UserPassword newPassword);
- @Headers({"Content-Type: application/json"})
- @POST("api/invites/generate")
- Call<InviteResponse> sendInviteVia(@Header("Authorization") String token, @Body RequestBody invite);
- @POST("api/programs/{id}/clicks")
- Call<ResponseBody> clickOnPremiumProgram(@Header("Authorization") String token, @Path("id") long programId);
- @Headers({"Content-Type: application/json"})
- @POST("api/invites/link")
- Call<ResponseBody> inviteLinkAfterRegistration(@Header("Authorization") String token, @Body ReferrerInvite invite);
- @Headers({"Content-Type: application/json"})
- @PUT("api/me/premium-news/subscription")
- Call<ResponseBody> putPremiumNews(@Header("Authorization") String token, @Body RequestBody invite);
- @Headers({"Content-Type: application/json"})
- @PUT("api/me/newsletter/subscription")
- Call<ResponseBody> putNewsLetter(@Header("Authorization") String token, @Body RequestBody invite);
- @GET("/api/payments/payment-plans")
- Call<PriceResponse> getSubscriptionsPrice(@Header("Authorization") String token, @Query("country_code") String countryCode, @Query("coupon") String coupon);
- @POST("/api/payments/gift-codes/activate")
- Call<ApplyGiftResponse> getGiftCodeStatus(@Header("Authorization") String token, @Body RequestBody code);
- @POST("/api/payments/gift-codes/create")
- Call<GiftCoupon> getGiftCoupon(@Header("Authorization") String token, @Body RequestBody itemId);
- // @POST("api/payments/send-code")
- // Call<ResponseBody> getPremiumCoupon(@Header("Authorization") String token, @Body RequestBody itemId);
- @POST("api/payments/subscriptions")
- Call<ResponseBody> buyPremium(@Header("Authorization") String token, @Body RequestBody itemCard);
- @POST("/api/payments/subscriptions/cancel")
- Call<ResponseBody> cancelSubscription(@Header("Authorization") String token);
- @POST("/api/payments/subscriptions/swap")
- Call<ResponseBody> swapSubscription(@Header("Authorization") String token, @Body RequestBody planId);
- @POST("/api/payments/cards")
- Call<CardInfo> addDefaultCard(@Header("Authorization") String token, @Body RequestBody tokenCard);
- @GET("/api/payments/cards")
- Call<List<DefaultCards>> getDefaultCards(@Header("Authorization") String token);
- @PUT("/api/payments/cards/{id}")
- Call<ResponseBody> updateDefaultCard(@Header("Authorization") String token, @Path("id") String cardId );
- @DELETE("/api/payments/cards/{id}")
- Call<ResponseBody> deleteDefaultCard(@Header("Authorization") String token, @Path("id") String cardId );
- @GET("/api/payments/gift-codes-prices")
- Call<PriceResponse> getGiftCodesPrices(@Header("Authorization") String token, @Query("country_code") String countryCode, @Query("coupon") String coupon);
- @POST("api/payments/gift-codes/{id}/send")
- Call<ShareGiftResponse> shareGift(@Header("Authorization") String token, @Path("id") String giftId, @Body RequestBody request);
- @GET("/api/payments/charges")
- Call<HistoryResponse> getHistory(@Header("Authorization") String token);
- @GET("/api/versions")
- Call<VersionResponse> getAppVersions();
Add Comment
Please, Sign In to add comment