Uplink data url: integration http

Hi everybody. I use this script to obtain the “data”, through the http integration.

<?php header ("Content-type: application/json"); $json = file_get_contents("php://input"); $obj = json_decode($json); $decoded = base64_decode(json_encode($obj->data)); $notdecode = json_encode($obj->applicationName); $combine = "$decoded - $notdecode"; $fp = @fopen("TPM.txt", "a");//open and write fwrite($fp,$combine); fwrie($fp,"\r\n"); fclose($fp); ?>

And i get this error:
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

Could you help me please, with the Uplink data URL that I must enter. I’m using a linux laptop (is where is runing the LAMP server) and the gateway is running in the raspberry (chirpstack server).

sorry if the question is very easy to resolve, but this is new for me.

Do I need to do any different configuration in the chirpstack-application-server.toml?

I did this configuration:
https://www.chirpstack.io/application-server/install/config/

Ur help please

I got this error

{
  "error": {
    "grpcCode": 16,
    "httpCode": 401,
    "message": "authentication failed: get token from context error: no authorization-data in metadata",
    "httpStatus": "Unauthorized",
    "details": []
  }
}

Help me please

You are not properly authorized.

https://www.chirpstack.io/application-server/integrate/auth/

I generated a jw secret and placed it in the file chirp-stack-application.toml., but in the function to obtain the data, I generated a new one. Should I copy this new jw secret to the file mencioned.

Thank so much for answering.