Calls
அழைப்பு வரலாறு மற்றும் SIM தகவலை அணுகவும். READ_CALL_LOG அனுமதி தேவை.
வகை வரையறைகள்
type Call {
id: ID!
number: String!
name: String! # display name from contacts
photoId: String! # use GET /fs?id=<photoId>
startedAt: String! # ISO 8601
duration: Int! # seconds
type: Int! # 1=incoming 2=outgoing 3=missed 4=voicemail 5=rejected 6=blocked
accountId: String! # SIM slot / account id
geo: String! # geographic label for the number
}
type Sim {
id: String!
label: String!
number: String!
subscriptionId: Int!
}செயல்பாடுகள்
calls
அழைப்பு பதிவு உள்ளீடுகளைத் தேடவும். அனைத்தையும் பட்டியலிட query-யை வெற்றாக விடவும்.
query GetCalls($offset: Int!, $limit: Int!, $query: String!) {
calls(offset: $offset, limit: $limit, query: $query) {
id number name photoId startedAt duration type accountId geo
}
}callCount
ஒரு query-யுடன் பொருந்தும் அழைப்புகளை எண்ணவும்.
query GetCallCount($query: String!) {
callCount(query: $query)
}sims
சாதனத்தில் கிடைக்கக்கூடிய அனைத்து SIM கார்டுகள் / தொலைபேசி கணக்குகளையும் பட்டியலிடவும்.
query GetSims {
sims { id label number subscriptionId }
}call
கொடுக்கப்பட்ட எண்ணுக்கு ஒரு தொலைபேசி அழைப்பைத் தொடங்கவும். உடனடியாக அழைப்பதற்கு பதிலாக தொலைபேசி செயலி டயலரைத் திறக்க showDialer-ஐ true-ஆக அமைக்கவும். CALL_PHONE அனுமதி தேவை.
mutation Call($number: String!, $showDialer: Boolean!) {
call(number: $number, showDialer: $showDialer)
}deleteCalls
ஒரு query-யுடன் பொருந்தும் அழைப்பு பதிவு உள்ளீடுகளை நீக்கவும்.
mutation DeleteCalls($query: String!) {
deleteCalls(query: $query)
}