API Referansı

Aramalar

Arama geçmişine ve SIM bilgilerine erişin. READ_CALL_LOG izni gerekir.

Tip Tanımları

bash
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

query

calls

Arama günlüğü girişlerini arayın. Tümünü listelemek için sorguyu boş bırakın.

bash
query GetCalls($offset: Int!, $limit: Int!, $query: String!) {
  calls(offset: $offset, limit: $limit, query: $query) {
    id number name photoId startedAt duration type accountId geo
  }
}
query

callCount

Bir sorguyla eşleşen aramaları sayın.

bash
query GetCallCount($query: String!) {
  callCount(query: $query)
}
query

sims

Cihazda mevcut tüm SIM kartlarını / telefon hesaplarını listeleyin.

bash
query GetSims {
  sims { id label number subscriptionId }
}
mutation

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.

bash
mutation Call($number: String!, $showDialer: Boolean!) {
  call(number: $number, showDialer: $showDialer)
}
mutation

deleteCalls

Bir sorguyla eşleşen arama günlüğü girişlerini silin.

bash
mutation DeleteCalls($query: String!) {
  deleteCalls(query: $query)
}