Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Commit

Permalink
fix for API change
Browse files Browse the repository at this point in the history
  • Loading branch information
helgew committed Aug 23, 2021
1 parent b2055c8 commit 84e82cd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/org/grajagan/emporia/api/EmporiaAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import org.grajagan.emporia.model.Readings;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

import java.time.Instant;
Expand All @@ -35,8 +34,8 @@ public interface EmporiaAPI {
@GET("/customers")
Call<Customer> getCustomer(@Query("email") String email);

@GET("/customers/{customerId}/devices?detailed=true&hierarchy=true")
Call<Customer> getCustomer(@Path("customerId") Integer customerId);
@GET("/customers/devices?detailed=true&hierarchy=true")
Call<Customer> getCustomer(@Query("customerGid") Integer customerId);

@GET("/AppAPI?apiMethod=getChartUsage")
Call<Readings> getReadings(@Query("start") Instant start,
Expand Down

0 comments on commit 84e82cd

Please sign in to comment.