2

I have this Twilio package installed (in both environments):

I am using VSCode to build against the Apex Query Library:

Example Apex

TwilioSF.TwilioApiClient api = new TwilioSF.TwilioApiClient();
api.addUrlPart('Accounts');
api.addUrlPart('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX');
api.addUrlPart('Messages.json');

api.addParam('To','+15558675310');
api.addParam('From','+15017122661');
api.addParam('Body','Here is my message');
TwilioSF.TwilioApiClientResponse response = api.doPost();

String sid = response.getTwilioJsonParser().get('sid').getString();
Integer totalSegments = response.getTwilioJsonParser().get('num_segments').getInteger();

No API Documentation

Unfortunately, Twilio don't seem to have API documentation which lists all the classes and their methods with usages.

For example, I want to know what methods the TwilioApiClient and TwilioApiClientResponse classes have.

Question

How do I make VSCode download the Twilio classes, so there is intellisense?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.