I am having an error here it says that I have "Uncaught ArgumentCountError", but I am just following a tutorial and it has no error, but when I run it it does. This is error I got Fatal error: Uncaught ArgumentCountError: define() expects at least 2 arguments, 1 given in C:xampphtdocsphprestcoreinitialize.php:3 Stack trace: #0 C:xampphtdocsphprestcoreinitialize.php(3): ..
Category : rest
We have developed an Uber-like app, and recently we are facing some issues with the CPU usage. Where during the day many users connect using the mobile application to a REST API end posting so many requests at one time. But the CPU usage keeps raising every 5 minitues. We are using: Centos 7 Php ..
I’m trying to retrieve a contact in Intercom through their REST API. I’m using the following code but I get the following error : CODE try { $postdataarray[‘query’] = [ "field" => "email","operator" => "=","value" => $value[’email’]]; $postData = json_encode($postdataarray); $postHeader = [ ‘Authorization:Bearer ergergergergergergergerg’, ‘Accept: application/json’, ‘Content-Type: application/json -d’ ]; $curl = curl_init("https://api.intercom.io/contacts/search/"); curl_setopt($curl, ..
I’m trying to build up a database of scientific images. I have a file with DOIs (see here if unfamiliar with DOI: https://www.doi.org/index.html) for approximately 250,000 scientific documents. My idea is to resolve the URLs and then extract the images and their captions (to act as a sort of description of the image) from these ..
I am trying to create an API. The problem is that it’s working when use a simple form to post the data to the URL but it doesn’t work with my CURL code. With CURL it returns Invalid Parameters message. Working Form Method <form method="post" action="https://hrtaskapi.dhwaniris.in/index.php/api/user/login"> <input type="text" name="username" value="1412" class="form-control"> <input type="text" name="password" value="142487" ..
I’m from MERN Stack background and new to WordPress and working with WP Rest API and looking for alternative of API proxying in WP Rest API which we do in React Development (https://create-react-app.dev/docs/proxying-api-requests-in-development/) Sourc..
I am having trouble formatting my PHP script so I can upload an Avatar using Xenforo’s API. I have a csv file that is in the format of USERID , AVATAR PATH: The PHP scipt is supposed to read the csv file, get the userid, and the upload the avatar using the API. 852,/uploads/avatars/2521.jpg 79518,/uploads/avatars/109779.gif ..
During a university project, i’ve build a REST api with Spring boot and i’m currently trying to write a client to use with my REST Api. I have this URI to get a "Bearer" token : enter image description here And when i create http request within IntelliJ they are working fine, like this : ..
i have a rest api for prototyping. The api site: https://gorest.co.in/ Now i fetch all data from this endpoint. My Question is i fetch for each product data. Like name, photo, price, category etc. My problem i want to fetch for each category all products in php. How can i do that? I confused. For ..
I have a rest API for prototyping. The api site: https://gorest.co.in/ and I am fetching all data from this endpoint. I fetch for each product data like name, photo, price, category etc. Problem: I want to fetch each category for all products, through PHP. For example: https://gorest.co.in/public-api/categories is category endpoint where every cat has a ..