कॉल
सुविधा समर्थन के लिए app.capabilities और प्राधिकरण के लिए app.access तथा होस्ट अनुमतियाँ जाँचें। उदाहरण कृत्रिम मान उपयोग करते हैं; कॉल करने से पहले पथ, ID, इनपुट और फ़िल्टर बदलें।
प्रकार परिभाषाएँ
type Mutation {
call(number: String!, showDialer: Boolean!): Boolean!
deleteCalls(query: String!): ActionResult!
}
type Query {
callCount(query: String!): Int!
calls(query: String!, offset: Int!, limit: Int!): [Call!]!
}
type ActionResult {
affectedCount: Int!
}
type Call {
typeCode: Int!
id: ID!
number: String!
name: String!
photo: String!
startedAt: Instant!
durationSec: Int!
type: CallType!
accountId: ID!
geo: PhoneGeo
tags: [Tag!]!
}
enum CallType {
INCOMING
OUTGOING
MISSED
VOICEMAIL
REJECTED
BLOCKED
ANSWERED_EXTERNALLY
UNKNOWN
}
enum DataType {
DEFAULT
AUDIO
VIDEO
IMAGE
SMS
CONTACT
NOTE
FEED_ENTRY
CALL
PACKAGE
FILE
APP_FILE
DOC
}
scalar Instant
type PhoneGeo {
country: String!
numberType: PhoneNumberType!
carrier: String!
description: String!
}
enum PhoneNumberType {
FIXED_LINE
MOBILE
FIXED_LINE_OR_MOBILE
TOLL_FREE
PREMIUM_RATE
SHARED_COST
PERSONAL_NUMBER
VOIP
PAGER
UAN
VOICEMAIL
}
type Tag {
id: ID!
name: String!
type: DataType!
count: Int!
}ऑपरेशन
call
दिए गए नंबर पर कॉल शुरू करें। तुरंत कॉल करने के बजाय फ़ोन ऐप का डायलर खोलने के लिए showDialer को true करें। CALL_PHONE अनुमति आवश्यक है।
# `showDialer` hands the number to the dialer instead of placing the
# call outright.
mutation call($number: String!, $showDialer: Boolean!) {
call(number: $number, showDialer: $showDialer)
}deleteCalls
क्वेरी से मेल खाने वाली कॉल लॉग प्रविष्टियाँ मिटाएँ।
mutation deleteCalls($query: String!) {
deleteCalls(query: $query) { affectedCount }
}callCount
क्वेरी से मेल खाने वाली कॉल गिनें।
query callCount($query: String!) {
callCount(query: $query)
}calls
कॉल लॉग प्रविष्टियाँ खोजें। सब सूचीबद्ध करने के लिए query खाली छोड़ें।
query calls($query: String!, $offset: Int!, $limit: Int!) {
calls(query: $query, offset: $offset, limit: $limit) { typeCode id number name photo startedAt durationSec type }
}