File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
app/src/main/java/org/simple/clinic Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import org.simple.clinic.sync.DataPushResponse
44import retrofit2.Call
55import retrofit2.http.Body
66import retrofit2.http.GET
7+ import retrofit2.http.Headers
78import retrofit2.http.POST
89import retrofit2.http.Query
910
@@ -14,6 +15,7 @@ interface CVDRiskSyncApi {
1415 @Body body : CVDRiskPushRequest
1516 ): Call <DataPushResponse >
1617
18+ @Headers(value = [" X-RESYNC-TOKEN: 1" ])
1719 @GET(" v4/cvd_risks/sync" )
1820 fun pull (
1921 @Query(" limit" ) recordsToPull : Int ,
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import org.simple.clinic.sync.DataPushResponse
44import retrofit2.Call
55import retrofit2.http.Body
66import retrofit2.http.GET
7+ import retrofit2.http.Headers
78import retrofit2.http.POST
89import retrofit2.http.Query
910
@@ -14,6 +15,7 @@ interface PatientAttributeSyncApi {
1415 @Body body : PatientAttributePushRequest
1516 ): Call <DataPushResponse >
1617
18+ @Headers(value = [" X-RESYNC-TOKEN: 1" ])
1719 @GET(" v4/patient_attributes/sync" )
1820 fun pull (
1921 @Query(" limit" ) recordsToPull : Int ,
You can’t perform that action at this time.
0 commit comments