I dont know if you understood my question. This is the JSON: I used: i dont get the events i get only the awbNo. WHat to do to get the events? Answer On your json data events is definning as a array.You should to define the values with your events data.
Tag: api
Laravel – Error when calling my logout route
I did the installation of laravel as sent by the basic authentication guide with auth, my login works and returns me a token, but when I try to log out it returns me the following error: this error in my middlaware where it was for him to do the control with the token, but I think I’m doing something wrong,
laravel 7 keeps adding ‘/public/’ to my api routes
I am trying to make a php curl request to my laravel api Here’s the curl function function CallAPI($method, $url, $data = false) { $curl = curl_init(); switch ($method) { case &…
PHP/JavaScript apparently not detecting JSON API as valid
I’m trying to make a simple API with PHP and a way to retrieve data from it in JavaScript but I keep getting the following error: SyntaxError: Unexpected token < in JSON at position 0. The JSON is valid and I’m not sure what is causing the error… I’ve tried setting headers and the data is encoded with json_encode() so
Laravel with() and search using LIKE not working
So I have 2 tables, 1 table for storing debt(id, amount, category_id) and 1 table for storing debt categories(id, name). I am trying to pull the data for each month from the debt table, but I also have a search which seems to not work, I guess I am missing something. I have the following: Debt Model: This works fine,
Laravel API – Showing individual file through o2m relationship
So I have two models User and File, these are connected with a one-to-many relationship. I have sorted the API routes and controllers to index all users, show specific user and index all files uploaded by that specific user. I do not know how to write the logic that will allow this route 127.0.0.1:8001/api/2/files/1 to show the first file uploaded
Zammad API: Create ticket with tag
For those who don’t want to read the whole question: I’m looking for the index in the API-Request (Zammad) to set a tag while creating a ticket. Details: I’m using PHP to make an API-Request to my server where Zammad is installed. The following shows the data i sent via curl: After converting the data to JSON, im sending it
How to make URL from Laravel routes
I’ve got Laravel backend and I’m trying to make iOS to it, but there is no documentation. It is my first time with Laravel, so confused with the routes and middlewares. How do I compose URL from code …
Automate a weekly background function in WordPress
I’m developing a WordPress site for a client who is listing celebrities on her site. Each celebrity profile shows a table of social media stats which is grabbed via the relevant API using the respective user handle. For example the Twitter follower count is retrieved via the Twitter API. Everything works as it should but the page load times are
NetSuite connect using PHP oAuth 1.0 getting error
Hi I want to connect netsuite using PHP . I tried in Postman and it is working properly . Request is sending and i am getting result . So i want to execue the same thing using PHP . So i wirte the following code . But I’m getting the following error : {“error” : {“code” : “INVALID_LOGIN_ATTEMPT”, “message” :