diff --git a/PixelSDK/src/main/java/convertedin/pixel/pixelsdk/ConvertedInSdk.kt b/PixelSDK/src/main/java/convertedin/pixel/pixelsdk/ConvertedInSdk.kt index e61b821..a2a36d5 100644 --- a/PixelSDK/src/main/java/convertedin/pixel/pixelsdk/ConvertedInSdk.kt +++ b/PixelSDK/src/main/java/convertedin/pixel/pixelsdk/ConvertedInSdk.kt @@ -9,7 +9,7 @@ class ConvertedInSdk { companion object { - var apiUrl: String = "https://test.convertedin.com/api/" + var apiUrl: String = "https://app.converted.in/api/" private var sInstance: ConvertedInSdk? = null private var helper: PixelHelper? = null diff --git a/PixelSDK/src/main/java/convertedin/pixel/pixelsdk/apis/EventApis.kt b/PixelSDK/src/main/java/convertedin/pixel/pixelsdk/apis/EventApis.kt index e055ddc..2f928a2 100644 --- a/PixelSDK/src/main/java/convertedin/pixel/pixelsdk/apis/EventApis.kt +++ b/PixelSDK/src/main/java/convertedin/pixel/pixelsdk/apis/EventApis.kt @@ -28,7 +28,7 @@ interface EventApis { ): Single companion object { - const val API_IDENTITY = "identity" + const val API_IDENTITY = "identify" const val API_EVENTS = "events" } diff --git a/PixelSDK/src/main/java/convertedin/pixel/pixelsdk/data/entities/PixelEvents.kt b/PixelSDK/src/main/java/convertedin/pixel/pixelsdk/data/entities/PixelEvents.kt index 7204a49..9382ec8 100644 --- a/PixelSDK/src/main/java/convertedin/pixel/pixelsdk/data/entities/PixelEvents.kt +++ b/PixelSDK/src/main/java/convertedin/pixel/pixelsdk/data/entities/PixelEvents.kt @@ -5,7 +5,6 @@ import com.google.gson.annotations.SerializedName data class EventRequest( @SerializedName("event") var event: String, - @SerializedName("cid") var cid: String?, @SerializedName("cuid") var cuid: String?, @SerializedName("data") var data: EventData?, ) @@ -19,7 +18,5 @@ data class EventData( data class EventContent( @SerializedName("id") var id: String ?, @SerializedName("quantity") var quantity: String ?, - @SerializedName("name") var name: String ?, - @SerializedName("category") var category: String ? - + @SerializedName("name") var name: String ? ) \ No newline at end of file diff --git a/PixelSDK/src/main/java/convertedin/pixel/pixelsdk/utils/PixelHelper.kt b/PixelSDK/src/main/java/convertedin/pixel/pixelsdk/utils/PixelHelper.kt index dd5ba60..e6afb25 100644 --- a/PixelSDK/src/main/java/convertedin/pixel/pixelsdk/utils/PixelHelper.kt +++ b/PixelSDK/src/main/java/convertedin/pixel/pixelsdk/utils/PixelHelper.kt @@ -123,7 +123,6 @@ class PixelHelper(context: Context){ eventsViewModel.addEvent( EventRequest( event = eventName, - cid = eventsViewModel.getUser()?.cid, cuid = eventsViewModel.getDeviceId(), data = EventData(currency = currency, value = total, content = products) )