Aramalar
Arama geçmişine ve SIM bilgilerine erişin. READ_CALL_LOG izni gerekir.
Tip Tanımları
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!
}İşlemler
calls
Arama günlüğü girişlerini arayın. Tümünü listelemek için sorguyu boş bırakın.
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
Bir sorguyla eşleşen aramaları sayın.
query GetCallCount($query: String!) {
callCount(query: $query)
}sims
Cihazda mevcut tüm SIM kartlarını / telefon hesaplarını listeleyin.
query GetSims {
sims { id label number subscriptionId }
}call
Verilen numaraya telefon araması başlatın. Telefonu hemen aramak yerine telefon uygulaması tuş takımını açmak için showDialer'ı true olarak ayarlayın. CALL_PHONE izni gerekir.
mutation Call($number: String!, $showDialer: Boolean!) {
call(number: $number, showDialer: $showDialer)
}deleteCalls
Bir sorguyla eşleşen arama günlüğü girişlerini silin.
mutation DeleteCalls($query: String!) {
deleteCalls(query: $query)
}