twilio-0.1.3.2: Twilio REST API library for Haskell

Safe HaskellNone
LanguageHaskell98

Twilio.Internal.Resource

Synopsis

Documentation

This module repackages functionality exposed by MonadRequest into a set of classes that REST resources can easily consume. It also provides functions get and post that work well with type inference.

class Get r where Source #

Get represents REST resources that support HTTP GET requests with any number of arguments.

Minimal complete definition

get

Methods

get :: r Source #

Instances

(MonadThrow m, Get2 a b r) => Get (a -> b -> TwilioT m r) Source #

Instances of Get2 are instances of Get.

Methods

get :: a -> b -> TwilioT m r Source #

(MonadThrow m, Get1 a r) => Get (a -> TwilioT m r) Source #

Instances of Get1 are instances of Get.

Methods

get :: a -> TwilioT m r Source #

(MonadThrow m, Get0 r) => Get (TwilioT m r) Source #

Instances of Get0 are instances of Get.

Methods

get :: TwilioT m r Source #

class Get0 r where Source #

Get0 represents REST resources that support HTTP GET requests with 0 arguments.

Minimal complete definition

get0

Methods

get0 :: MonadThrow m => TwilioT m r Source #

Instances

Get0 APIKeys Source # 
Get0 Accounts Source # 
Get0 Addresses Source # 
Get0 Applications Source # 
Get0 AuthorizedConnectApps Source # 
Get0 Calls Source # 

Methods

get0 :: MonadThrow m => TwilioT m Calls Source #

Get0 Conferences Source # 
Get0 ConnectApps Source # 
Get0 IncomingPhoneNumbers Source # 
Get0 Messages Source # 
Get0 OutgoingCallerIDs Source # 
Get0 Queues Source # 
Get0 Recordings Source # 
Get0 ShortCodes Source # 
Get0 Transcriptions Source # 
Get0 UsageRecords Source # 
Get0 UsageTriggers Source # 

class Get1 a r where Source #

Get1 represents REST resources that support HTTP GET requests with 1 argument.

Minimal complete definition

get1

Methods

get1 :: MonadThrow m => a -> TwilioT m r Source #

Instances

Get1 UsageTriggerSID UsageTrigger Source # 
Get1 TranscriptionSID Transcription Source # 
Get1 ShortCodeSID ShortCode Source # 
Get1 RecordingSID Recording Source # 
Get1 QueueSID Queue Source # 
Get1 QueueSID Member Source # 
Get1 QueueSID Members Source # 
Get1 PhoneNumberSID IncomingPhoneNumber Source # 
Get1 PhoneNumberSID OutgoingCallerID Source # 
Get1 MessageSID Message Source # 
Get1 MessageSID MediaList Source # 
Get1 ConnectAppSID AuthorizedConnectApp Source # 
Get1 ConnectAppSID ConnectApp Source # 
Get1 ConferenceSID Conference Source # 
Get1 ConferenceSID Participants Source # 
Get1 CallSID Call Source # 

Methods

get1 :: MonadThrow m => CallSID -> TwilioT m Call Source #

Get1 CallSID Feedback Source # 
Get1 ApplicationSID Application Source # 
Get1 APIKeySID APIKey Source # 
Get1 AddressSID Address Source # 
Get1 AccountSID Account Source # 
Get1 ISOCountryCode AvailablePhoneNumbers Source # 

class Get2 a b r where Source #

Get2 represents REST resources that support HTTP GET requests with 2 arguments.

Minimal complete definition

get2

Methods

get2 :: MonadThrow m => a -> b -> TwilioT m r Source #

class Post r where Source #

Post represents REST resources that support HTTP POST requests with any number of arguments.

Minimal complete definition

post

Methods

post :: r Source #

Instances

(MonadThrow m, Post3 a b c r) => Post (a -> b -> c -> TwilioT m r) Source # 

Methods

post :: a -> b -> c -> TwilioT m r Source #

(MonadThrow m, Post2 a b r) => Post (a -> b -> TwilioT m r) Source # 

Methods

post :: a -> b -> TwilioT m r Source #

(MonadThrow m, Post1 a r) => Post (a -> TwilioT m r) Source #

Instances of Post1 are instances of Post.

Methods

post :: a -> TwilioT m r Source #

(MonadThrow m, Post0 r) => Post (TwilioT m r) Source #

Instances of Post0 are instances of Post.

Methods

post :: TwilioT m r Source #

class Post0 r where Source #

Post0 represents REST resources that support HTTP POST requests with 0 arguments.

Minimal complete definition

post0

Methods

post0 :: MonadThrow m => TwilioT m r Source #

Instances

class Post1 a r where Source #

Post1 represents REST resources that support HTTP POST requests with 1 argument.

Minimal complete definition

post1

Methods

post1 :: MonadThrow m => a -> TwilioT m r Source #

class Post2 a b r where Source #

Post2 represents REST resources that support HTTP POST requests with 2 arguments.

Minimal complete definition

post2

Methods

post2 :: MonadThrow m => a -> b -> TwilioT m r Source #

class Post3 a b c r where Source #

Post3 represents REST resources that support HTTP POST requests with 3 arguments.

Minimal complete definition

post3

Methods

post3 :: MonadThrow m => a -> b -> c -> TwilioT m r Source #

class Delete r where Source #

Delete represents REST resources that support HTTP DELETE requests with any number of arguments.

Minimal complete definition

delete

Methods

delete :: r Source #

Instances

(MonadThrow m, Delete1 a) => Delete (a -> TwilioT m ()) Source #

Instances of Delete1 are instances of Delete.

Methods

delete :: a -> TwilioT m () Source #

class Delete1 a where Source #

Delete1 represents REST resources that support HTTP POST requests with 1 argument.

Minimal complete definition

delete1

Methods

delete1 :: MonadThrow m => a -> TwilioT m () Source #