Я использую API в API, это параметр номера карты. Я вставляю данные в URL, но теперь он работает.
api равно http://api.igiinsurance.com.pk:8888/insurance_IGItakaful/insurance-api/get_company_employee.php?company_id=1053&offset=0&limit=10&health_card=here номер карты приходит
я вставляю вот так
constructor(public navCtrl: NavController, public httpClient: HttpClient, public navParams: NavParams) { this.userData = this.navParams.get('x'); console.log(this.userData.Cardnumber); this.clientData = this.httpClient.get('http://url.come.here/get_company_employee.php?company_id=1053&offset=0&limit=10&health_card="this.userData.Cardnumber'); this.clientData.subscribe(udata => { console.log('my data: ', udata); })
Так я отправляю параметры.Решено
this.clientData = this.httpClient.get(url', { params: { health_card: this.userData }, });