Skip to content

Commit

Permalink
changing importcamp fn name to standard
Browse files Browse the repository at this point in the history
  • Loading branch information
Sajal Singhal committed Mar 11, 2024
1 parent dac3a3a commit 833210a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/plivo/api/models/base/Importer.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public abstract class Importer<ImportResponse extends BaseResponse> extends Base
/**
* Actually import an instance of the resource.
*/
public ImportResponse importcamp() throws IOException, PlivoRestException {
public ImportResponse import_campaign() throws IOException, PlivoRestException {
validate();
Response<ImportResponse> response = obtainCall().execute();

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/plivo/api/CampaignTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void campaignImportShouldSucceed() throws Exception {
String fixtureName = "campaignImportResponse.json";

expectResponse(fixtureName, 202);
Campaign.importer("CNTQ0OD", "New Contact by vinay for ct").importcamp();
Campaign.importer("CNTQ0OD", "New Contact by vinay for ct").import_campaign();

assertRequest("POST", "10dlc/Campaign/Import/");
}
Expand Down

0 comments on commit 833210a

Please sign in to comment.