The issue is I am using the below mentioned function like =(IMPORTHTML(webpage, "table", 2)) but do not get any values.
I have tried this the importfeed, importhtml, importXml functions with similar results. Seems like an authorization request needs to be send if I want to get this data. However, i do not want to go through that process.
Can somebody please suggest the better/efficient way to figure this out?
Thanks,
Siya
For data needed authentication, u have no way to use importXXXX but app scripts, alternative u have to call up their API.
No luck as I was looking for something similar
Related
I'm going to need to display a list of results as a response from a telegram bot I'm working on, and was wondering what's the best way of doing that...
I could "calculate" the amount of spaces I need to make it look semi-normal, but I'd rather have a better solution, if there is one.
Thanks!
So, the closest solution I could find is using "pre" inside the bot message (assuming it has parseMode=html), since the characters are all the same width.
I won't be using it eventually, but that's my 2 cents..
i prefer generating HTML table as file and then convert it to an image with some tools, and finally send the image to user by sendPhoto method.
by this method i can create a beautiful colored table with many options...
I have used a PHP library to generate a tabular structure, then used <pre> tag to keep the spacing as it is as suggested by trueicecold
i am using like this for LinkedIn Comment, is there any wrong in call? to read LinkedIn comments
https://api.linkedin.com/v1/people/~/network/updates?scope=self
but i didn't get the result for comments. i had tried also by passing "after" parameter as a time stamp but still there is no luck ..please help me to fix this issue
I am looking help from one of you guys
You have missed the oauth2_access_token
Take a look to:
https://developer.linkedin.com/documents/authentication
Hello All: I am hoping someone can help me with this. I have never done a call to an API and am really out of my depth. What I am trying to do is a call to an API on a wordpress page. Here is what I have from the API:
http://zipcodedistanceapi.redline13.com/rest//distance.///
I have an API key. I have been trying to learn how to do this but there are thousands of ways and am really at a loss how to do this on a wordpress page. Can anyone help?
Thanks so much, Gerard
You can do it in php (here I use file_get_contents):
$distance = file_get_contents("http://zipcodedistanceapi.redline13.com/rest/<api_key>/distance.<format>/<zip_code1>/<zip_code2>/<units>");
Example taken from their site:
http://zipcodedistanceapi.redline13.com/rest/qVuOZidNAe5osYgYHbyK33EHpJD2nKjOFODE6QsH5y6yxnxfy5ZC9DjynXBLHUAm/distance.json/1000/2000/km
You can also use cURL or anything which can call an external page.
To decode json, have a look on json_decode.
Think about caching the values using your database or user cookies if possible to avoid multiple unnecessary requests.
EDIT: Based on the code provided in your comment (I took a fake API key from demonstration purposes):
$distance = file_get_contents("http://zipcodedistanceapi.redline13.com/rest/qVuOZidNAe5osYgYHbyK33EHpJD2nKjOFODE6QsH5y6yxnxfy5ZC9DjynXBLHUAm/distance.json/48433/48501/miles");
print_r(json_decode($distance));
I have been trying to develop an app that references google inside search data.
Within the following picture, I would like to extract the picture, name, description, and opened. And display only that information as a result.
I have been looking at google custom search, but i cant seem to find out any information on using this data contained within "google inside search".
If anyone knows how I could reference this information and extract selected information within an app that would be greatly appreciated.
The knowledge base i wanted to use is called Freebase. Once i got the correct terminology it was simple to work out. Google provide heaps of doco on this.
We got a long-running website where XSS lurks. The problem comes from that some developers directly - without using HtmlEncode/Decode() - retrieve Request["sth"] to do the process, putting on the web.
I wonder if there is any mechanism like HTTPModule to help us HtmlEncode() all the items in a Http request to avoid XSS to some extent.
Appreciate for any suggestion.
Rgds,
Ricky
The problem is not retrieving Request data without HTML-encoding. In fact that's perfectly correct. You should not encode any text until the final output stage when you spit it into an HTML page.
Trying to blanket-encode incoming parameters, whether that's HTML-encoding or SQL-encoding, is totally the wrong thing. It may hide XSS holes in your app but it does not fix them. You will still have a hole if you output content that hasn't come from parameters, or has been processed since then. Meanwhile the automatic encoding will fill your database with multiply-escaped &amp;amp;amp;amp;amp; crud.
You need to fix the output stage, that's where the problem lies.
Like bobince said, this is an output problem, not an input problem. If you can isolate where this data is being output on the page, you could create a Filter and add it to the Response object. This filter would isolate the areas that are common output and then HtmlEncode them.