Copyleaks export query with scan id and results internet id? - php

I am using copyleaks in the Laravel your php sdk, and able to successfully submit & scans method.
If we have completed our scan successfully and getting response in our web hook, with scan id and multiple result internet id. So, do we need to export all result internet id or only first result internet id?

Related

delete spreadsheet on google drive from website

I am using a MySql database and google spreadsheets together. Each record in my MySql database has a corresponding google spreadsheet for aditional datas. On my website I have displayed the datas and included the spreatsheet by iframe.
From my website I edit and delete the records by php-script. After deleting a record from my database I go to google drive an delete the corresponding spreadsheet.
Is it posible, to delete the spreadsheet as well with the same php script from my website? If yes, how can I do it?
Yes, definitely you can. You may create an Apps Script and publish it as a webapp. Now you can call the wepapp URL from PHP using curl and pass the ID of the spreadsheet to the Weapp. App will take the ID and do the required action. Webapp code will look something like
function doGet(e){
var ssId = e.parameters.ssid;
var file = DriveApp.getFileById(ssId);
DriveApp.removeFile(file);
return ContentService.createTextOutput('File removed').setMimeType(ContentService.MimeType.TEXT);
}
For more details, check Apps Script Content Service.
https://developers.google.com/apps-script/guides/content

Youtube retrieve/embed

Is there a possible way where I can retrieve a list (with thumbnails) of my latest videos from youtube, store the embed code in a database using a cron job so I can show the video on a separate page instead of leading the users to youtube to view the videos? (all in php)
you can try to have a look at this page: https://developers.google.com/youtube/v3/
Google writes that:
You can use the API to fetch search results and to retrieve, insert, update, and delete resources like videos or playlists.
I saw thath PHP API are still in beta version but you can try it out. You must register your application to obtain credential to use API. At developers.google there is a lot of documentation and some examples (https://developers.google.com/youtube/v3/code_samples/php#retrieve_my_uploads)
Using API you don't need to retrieve code and store it into database, you can just show videos directly in your web application. I hope this is what you was looking for let me know if it helps!
Luca

Auto updating content in an App from a PHP web service

I am making an App using PhoneGap where there is a catalogue of products in a database. This content (image URL's, descriptions, prices etc) is likely to be updated weekly, so I want a way for the app to check the database and see which products are up to date. The idea is that the app should update its self when the phone has a network connection, so the catalogue is up to date.
I was thinking of having a timestamp field for each product which is updated whenever that product is changed, and when the user logs into the app it checks the stored timestamp for that product and checks it against the database. If the server DB is newer than the one on the app it would download info for that product.
Is this an efficient way to keep info up to date, or is there a more effective way?
What about grab the products with jquery from an API-rest (In the server) and put in a local database like localStorage, indexedDB or SQL-HTML5?
And then use the items from the database.

Getting data from MySQL to android and displaying as list under "App List" Tab?

I am a noob in android dev.. I have couple of questions..
1...I have database created in localhost in MySQL server. Table of all the "States".
Q2...I created PHP script to connect to the database, and getting the list from the database.. ...I need to convert this to Json file/data to be read in android...????
Q3...I created android project with tab views for list tab, getting & saving details tab, settings tab.. where details are settings tab are form view elements and need to write them back in json n send them to MySql database. how do i do that.. in php or android or both...?????
Q4.. When the user first installs the app and runs it, my app should send to the server the mobile registration id... how do it do that..?????
I tried C2DM, but no luck.. I am testing everything in the emulator first..
I am so stuck in these issues.. i have created more than 10 projects for each individual feature with the help of forums and blogs and google developer forums .. and yet dint succeed in anything..
PLZZZZZZZZZZZZZZZZZZZZZZZZZZ.... HELPPPPPPPPP!!!!!!!!!!!!?????
Thanks in adv..
Su
Q1. It is typical to use the json_encode() function to output a PHP array as a JSON object. This can be consumed by your android application by an AJAX call, passing in the URL to your PHP script.
Q2. Prepare an array of what you want to output as normal and then call json_encode() on it.
Q3. Look through the Android documentation and find a JSON encoding function. To 'send it to MySQL' you will need to pass the JSON output through an HTTP POST request to your PHP script that can validate the data and submit it to the database.

How do I send data from SQLite database in iPhone app to Web Service?

I am creating an iphone app that will run an SQLite database. I want the app to check, at start up, a MySQL database on a web server to see if there are new records. If there are the app will grab the new records.
So I figure I have to identify the most recent record in the app then send that to a web service (php page) that will compare the id field from the most recent record in the app to the most recent id in the web server db. If they don't match the web service will return the new records so the app can grab them and add them to the app database.
I'll get the most recent record id using this query: SELECT id FROM MainTable ORDER BY id DESC LIMIT 1. But how do I then send the result to the php page to compare to the web database?
Here are the steps:
1) you need a web server with MySQL and PHP, if you do not have Web-Service for iPhone, then i would like to you refer
2) Make Web Service Call using NSURL (Make sure how you are calling the web-service). you can use ASIHTTPRequest which is quite better than CFNetwork
Notes : Write a PHP script that should returns JSON data which easy to parse.
Use https (secure method)
Let us know if you have any issue..
For this I believe you have to actually write some code -- I'm not aware of a "canned" solution.

Categories