Skip to main content

All Questions

Tagged with
0 votes
1 answer
164 views

Laravel FormRequest Validation for Rest API get calls with 2 query json params not working properly

I got a Laravel FormRequest class that should validate two JSON query strings (nested objects and arrays) on a GET route on my JSON Rest API. I pick up the json query strings, decode them to php ...
MikkeyDevelop's user avatar
0 votes
2 answers
393 views

PHP Connect to Microsoft Dynamics CRM

I am trying to connect to Microsoft Dynamics CRM using an Application or Client Id and a Client Secret based authentication. I have client id, client secret and Tenant Id. But it does not seem to ...
Fllorinaaa's user avatar
0 votes
0 answers
25 views

cURL failed: no post FIELDS sent

I need to create a php curl request to an electronic signature service, sending a pdf file to be signed + a json payload. When I simulate the api through postman, it works through the local / desktop ...
foormi's user avatar
  • 1
0 votes
0 answers
21 views

How to Authenticate, and then use token on OAuth call in PHP

I've been looking for a simple example of how to do this in PHP: curl -X POST "https://account.xyxyxyxyx.com/oauth2/token" -u "xxxxxx:yyyyyyyyyy" --basic -H "Content-Type: ...
user2471951's user avatar
-1 votes
1 answer
30 views

How to send data to a server application

I'm trying to transform an old app in a Web Service. My customers should be able to send some data, like: hotel = "London North", stars = 3, rooms = 57, presences = 12000 in any form that I ...
Mauro Ghiglia's user avatar
-4 votes
1 answer
30 views

How can I access the 'type' attribute from the 'students' array in the API response using Flutter, Laravel, and PHP? [duplicate]

"data": { "id": 9, "name": "tala", "role": "Student", "email": "[email protected]", "students"...
anna 's user avatar
1 vote
0 answers
407 views

How to properly defined Post route with provider and processor Api Platform 3.0

We have a backend where ressources and entity are appart, Currently we are on Api Platform 2.6 and after an update and a use of php bin/console api:upgrade-resource we are on 2.7 ( goal is 3.0) the ...
Xbattlax's user avatar
  • 107
0 votes
0 answers
117 views

Post GraphQL PHP Query — Bad Request 400 Error

I am trying to use GraphQL to fetch this "Get Companies by ID" API by Harmonic AI[https://console.harmonic.ai/docs/api-reference/fetch#get-companies-by-id%5C] I am repeatedly getting a 400 ...
David Anyaeche's user avatar
1 vote
1 answer
588 views

Google Chat Rest API

I have not been able to find any documentation to authenticate and use the Google Chat API using a simple REST request. I have scoured the Google official documentation and it immediately states we ...
Datadimension's user avatar
0 votes
3 answers
47 views

I am getting an error when trying to access and return hasOne from the controller to the frontend

Response::setContent(): Argument #1 ($content) must be of type ?string I am getting the above error, when trying to access and return hasOne from the controller to the front end. I have created two ...
sajid ahamed's user avatar
-3 votes
1 answer
43 views

Authentication using Middleware in route api (solved)

i wanted to do authentication inside api.php in laravel, i use custom middleware to identify Auth()->role. this is what i have done: my problem is, when i logged on as author it said not ...
Eranda Dava's user avatar
0 votes
1 answer
119 views

Quickbooks API: Associating an Expense Purchase to an Invoice

I am using the QuickBooks PHP API and am struggling to create a LineItem with an Associated newly created expense (purchase). The invoice creates successfully, but it only associates a time entry ...
Rob Santoro's user avatar
-1 votes
1 answer
187 views

Why is my PHP API payment gateway not responding? [closed]

I tried to get a response from an api the first function give me the response correctly but the second does not I tried to send it with postman and it works and there is no errors with curl ... I ...
Ahmed Moustafa's user avatar
0 votes
1 answer
130 views

OneDrive Personal API, PHP & cURL

Since a few weeks, I cannot access to the OneDrive Personal API using cURL in PHP. The same URL works fine in a browser. The URL for OneDrive Personal API looks like: https://api.onedrive.com/v1.0/...
Aurelien Stride's user avatar
0 votes
1 answer
858 views

GA4 - report API - php client - filter error

Im try to apply a filter on a query, and getting an fatal error here is the source code: require 'vendor/autoload.php'; use Google\Analytics\Data\V1beta\BetaAnalyticsDataClient; use Google\Analytics\...
yossy roitburd's user avatar

15 30 50 per page
1
2 3 4 5
834