nylas/nylas-java

Drafts - delete Method not Available

Closed this issue · 2 comments

Hi,

Below code is documented in Nylas API doc. However, we are not able to use this.

NylasClient nylas = new NylasClient();
NylasAccount account = nylas.account("{ACCESS_TOKEN}");
Drafts drafts = account.drafts();
// Delete drafts by specifying the appropriate id
drafts.delete("{draft_id}");

We get error when we try tp access drafts.delete() method.

The method delete(String) from the type RestfulDAO is not visible
delete(java.lang.String,java.util.Map<java.lang.String,java.lang.String>) has protected access in com.nylas.RestfulDAO

@vishnuinfrrd Looks like we missed support for this in the SDK. Will add to the next release available soon.

Fixed in release 1.3.0