Chiamate
Accede allo storico delle chiamate e alle informazioni SIM. Richiede l'autorizzazione READ_CALL_LOG.
Definizioni di tipo
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!
}Operazioni
calls
Cerca le voci del registro chiamate. Lascia la query vuota per elencarle tutte.
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
Conta le chiamate corrispondenti a una query.
query GetCallCount($query: String!) {
callCount(query: $query)
}sims
Elenca tutte le schede SIM / account telefonici disponibili sul dispositivo.
query GetSims {
sims { id label number subscriptionId }
}call
Avvia una chiamata telefonica al numero indicato. Imposta showDialer su true per aprire il dialer dell'app telefono invece di chiamare immediatamente. Richiede l'autorizzazione CALL_PHONE.
mutation Call($number: String!, $showDialer: Boolean!) {
call(number: $number, showDialer: $showDialer)
}deleteCalls
Elimina le voci del registro chiamate corrispondenti a una query.
mutation DeleteCalls($query: String!) {
deleteCalls(query: $query)
}