Closed Surajprakashsahu closed 4 years ago
Hi @Surajprakashsahu ,
The latest version of ask-smapi-sdk
is 1.0.1 which needs to be added as a dependency. Version 2.0.0 is not yet available. Hope this helps.
Thank You for the information. But there's no source code or documentation available for version 1.x. 404 error when tried to access version 1.x
Hi @Surajprakashsahu ,
The documentation for ask-smapi-sdk
1.x can be found here. The 2.0.x in the url doesn't represent the version of the ask-smapi-sdk
but just a branch of the main repo. Let us know if you have further questions.
try {
// response with just the body.
Vendors response = customSmapiClient.listSkills();
// For full response with header, body and status code.
ApiResponse<Vendors> resp = customSmapiClient.callListSKills();
} catch (ServiceException e) {
System.out.println(e.getMessage());
}
I tried above code from example, there's no method such as listSkills() and callListSKills() present in the Class SkillManagementService imported from "com.amazon.ask.model.services.skillManagement" package. Have I made any mistake here? Please help. Thank You.
The SDK exposes two methods which are similar to the name that you're trying to access, listSkillsForVendorV1(params)
and callListSkillsForVendorV1(params)
. May I know why you're using listSkills()
and callListSkills()
, and any documentation that might have misled you to use those methods?
I was getting started with this SDK for my application. I tried examples from the "Usage Example" from "Readme.md" of ask-smapi-sdk repository there I found those methods listSkills()
and callListSkills()
.
Thank You for your help @pbheemag.
Apologies for the misleading documentation. The methods should've been listSkillsForVendorV1(params)
and callListSkillsForVendorV1(params)
. We'll have an update in the documentation asap. Thanks for pointing this out.
I tried add ask-smapi-sdk version 2.x.x to pom.xml got error that says: "Missing artifact com.amazon.alexa:ask-smapi-sdk:jar:2.0.0".
Am I doing anything wrong? Link to maven ask-smapi-sdk
Also there's no documentation available for version 1.x. Link to version 1.x ask-smapi-sdk