Skip to content
Advertisement

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,

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,

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

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” :

Advertisement