Package ai.tock.iadvize.client
Interface IadvizeApi
-
- All Implemented Interfaces:
public interface IadvizeApiIadvize API. client implementation used to make REST and GRAPHQL calls to Iadvize apis.
Henri-Joel SEDJAME
-
-
Method Summary
Modifier and Type Method Description abstract Call<AuthResponse>createToken(@Field(value = "username") String username, @Field(value = "password") String password, @Field(value = "grant_type") String grantType)abstract Call<GraphQLResponse<RoutingRuleResult>>checkAvailability(@Body() RequestBody body)abstract Call<GraphQLResponse<CustomDataResult>>getCustomData(@Body() RequestBody body)abstract Call<GraphQLResponse<SendProactiveMessageResult>>sendProactiveMessage(@Body() RequestBody body)-
-
Method Detail
-
createToken
@FormUrlEncoded()@POST(value = "/oauth2/token") abstract Call<AuthResponse> createToken(@Field(value = "username") String username, @Field(value = "password") String password, @Field(value = "grant_type") String grantType)
-
checkAvailability
@POST(value = "/graphql") abstract Call<GraphQLResponse<RoutingRuleResult>> checkAvailability(@Body() RequestBody body)
-
getCustomData
@POST(value = "/graphql") abstract Call<GraphQLResponse<CustomDataResult>> getCustomData(@Body() RequestBody body)
-
sendProactiveMessage
@POST(value = "/graphql")@Headers(value = {"Accept: application/vnd.iadvize.automation-chatbot-conversation-preview+json"}) abstract Call<GraphQLResponse<SendProactiveMessageResult>> sendProactiveMessage(@Body() RequestBody body)
-
-
-
-