Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
Hi im new to php and my sql. Im Developing android push notification application, following by this tutorial.
i have already created gcm database and table. when i inserting to the data from test.php, I got the following error form the register.php,..
but the entered data is stored in the data base correctly.
in the config.php i set the API KEY from the google project
this is the post request url
https://android.googleapis.com/gcm/send
this is the error
{"multicast_id":6982561382500500424,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"InvalidRegistration"}]}
appreciate any help
The registrationId you use in your test.php should be a valid registrationId that the client app received.
Here is more details on all possible error responses and what they mean:
Interpreting Error Codes
You may get wrong API KEY from Google. You should choose "Create a new server key"
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I have a Swagger API on which, I had to send Lead Form Data From my Web Page. I Can't Get much data From internet. Form is Already Created on Swagger HUB on Which ,I can manually insert data and it's Working But I had to send data From my Webpage , I am Already sending Data From my Webpage to Google Sheets But I Can't insert same data into Swagger HUB API Dynamically Can Anyone Help me With it Thanks!
As per documentation you have to use formdata to send infomration:
First you have to authenticate using authenticate endpoint and then use that token for authenticating the post endpoint.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I have tried different ways but non to be working! i believe there's something i am not doing right! can any one show me how to simply post different files, mostly images to a local xamp server in flutter with php to mysql with any package but mostly http, am running my app using an emulator..
You can access the localhost of you PC using 10.0.2.2
it proxied to 127.0.0.1
For POST/GETs I recommend you use Dio (https://pub.dev/packages/dio) plugin for flutter.
Read the DIO Docs it has examples of sending files.
Quoting from Dio Documentation,
GET
Response response = await Dio().get("http://www.google.com");
POST
response = await dio.post(
"http://www.dtworkroom.com/doris/1/2.0.0/test",
data: {"aa": "bb" * 22},
onSendProgress: (int sent, int total) {
print("$sent $total");
},
);
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I want to store the whole Url of the image in my MySQL database coming from firebase storage when calling getDownloadUrl() method.
When doing the above I'm able to save the url but the token gets cut.
This is what I gets in my database
https://firebasestorage.googleapis.com/v0/b/vibesproject-b54f0.appspot.com/o/UserProfileImages/Shaks?alt=media
and when alerting the same url in the app I got the whole path as shown in the below figure.
How can I store the whole path with the token in the database
This is the App image
Check that the MySQL column length is not too short to store the whole URL.
Actually I would suggest using a column type of TEXT instead of VARCHAR.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
I am using SPARK Web api to extract RESO data. I am facing an issue with the data replication. whenever I tried to do the data replication with a data limit greater than 25 always getting the following error:
{"error":{"code":400,"message":"$top must be an integer between 1 and 25"}}
Can anyone provide any efficient method to get the RESO data with a 1000 records or more per each request using RESO web api?
api request used : https://replication.sparkapi.com/Reso/OData/Property?$top=200.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
Am fetching data from mysqlite to a string array which i want to submit to PHP then update a mysql table.
Any easy way out, because doesn't seem to work?
I suggest using the network monitor tool to see that the Codename One code is sending out the right data as explained in the IO section of the developer guide.
I notice your PHP code tries to decode JSON into an array whereas your Java code adds a POST array both of which have nothing in common. I don't really know PHP's equivalent for handling an array so I can't help you there. On the Codename One side you can just write the array as JSON by converting it to a JSON String.