On my website I have a list of different documents to be sighned with QR. We use external mobile application to sign these docs via QR.
The question is there a way to reload page after successful QR scan using this app?
Can someone explain me how should it work?
I know that I have to send json string to app using QR Code and I get json string with result.
Then put the result to my db.
Thanks!
Related
I am curious about how to get Json from a windows forms project and using a webBrowser control to simulate access to a spotify app. I know I need to pass a string of some kind such as clientid=.... etc
GET
https://accounts.spotify.com/authorize/?client_id=5fe01282e44241328a84e7c5cc169165&response_type=code&redirect_uri=https%3A%2F%2Fexample.com%2Fcallback&scope=user-read-private%20user-read-email&state=34fFs29kd09
How would I accomplish this using the code above?
Do I put it in string and send it off to a url using the webbrowser and some how get a response form the webpage???
Could someone show me some example to try and accomplish this?
I am very confused.
I don't know how to use the "GET" command or any of those cURL commands.
Another thing do I send the url to the webbrowser and have the response saved and try to seperate the Json that gets sent back?
Any help would be wonderful such as an explanation.
Ultimately I am just trying to get information on how to access my APP I created in spotify and which url to use so that a user can login to my app and they get a token to use the webapi or so that I can use the web api.
https://developer.spotify.com/web-api/authorization-guide/
I am lost. Help. Please.
I have created an Android application with C# on the server side. Following this tutorial, I am using Json web service. Everything is working well, but the only issue is if someone hits www.mydomain.com/Handler.ashx?ANDROID, then all the methods written on server side are downloaded as a text file and the code can be read easily.
What I want to do is that the server should respond only if request is being made from my android application. If someone(hacker/cracker) hits the url, then he should not be able to download the code and should be redirected to some specific page saying unauthorized access prohibited.
Can someone help me with this? Let me know if this question is not clear.
What you can do is to pass a key from your android app for check.
I don't know C# but in PHP it can be something like this -
In your C# file, somewhere near the top of the file, check for a key value sent with a post method. If there is no key passed or wrong key passed, redirect to some other page.
$required_key = "Udsd728392jsakk22";
if(($_POST['key'] == null) || ($_POST['key'] != $required_key)){
//redirect to some other page
header("Location: www.myexampledomain.com/error.php");
}
And from your android app, when you are sending request to the URL, send with a key.
In my application, I was asked to get the facebook feeds and the posted image using its Hashtag.
I have tried with the below URL.
https://graph.facebook.com/search?q=%23test&access_token={Accesstoken}
I got the feeds, but the posted image are not showing up. Also the Access token is need to be generated all the time when i log in.
Please help to get the posted image from facebook using HASHTAG with any sample url or C# code.
Thanks in advance...
I want to grab a set of data from a site into my C# application. I've referred to some sites and articles using the WebClient class.
But the problem is the data I want is in a news bar made using flash. Is it possible to grab the data from it? The data in it also keeps on updating as well.
Have you tried the Yahoo approach? The below project does just that.
It is easy to download stock data from Yahoo!. For example, copy and
paste this URL into your browser address:
http://download.finance.yahoo.com/d/quotes.csv?s=YHOO+GOOG+MSFT&f=sl1d1t1c1hgvbap2.
Depending on your Internet browser setting, you may be asked to save
the results into a filename called "quotes.csv" or the following will
appear in your browser:
http://www.codeproject.com/KB/aspnet/StockQuote.aspx?display=Normal
It is unable to grab a data from Flash.
One possible solution is that, if you dig into embed tag at the Flash object or find some url or rss that looks to be consumed by the flash, you can read that by WebClient or (hopefully) XmlReader.
I'm letting my users register an email account, the users just fills in all information in my program and my program will fill the fields. Well not really it makes a POST request with the correct postdata to the correct form/post url.
However the website requires a captcha, I just simply want to show the captcha to my user, he enters the value and then it gets send along with the postdata.
The register page is here: http://register.rediff.com/register/register.php?FormName=user_details
I can just get all image urls from the html but when I copy the url of the captcha image and go to it, it's a different image then the image i copied the url from:
http://register.rediff.com/register/tb135/tb_getimage.php?uid=1312830635&start=JTNG
How do I do this using HttpWebRequest ?
I can just grab the html first:
string html = new WebClient().DownloadString("http://register.rediff.com/register/register.php?FormName=user_details ");
Then get the image url but I don't know how to show the same captcha to the user?
Btw it's not for a bot... it's not something automated.. it's just I don't want the user to show the webinterface...
Not really answer, some advice instead:
If you're writing an app client to work with the website, a better approach would be to write a WCF/WebService for the App to interact with directly - this can just refer directly to your BL layer.
If you want the whole app to work on screen scraping then that's a lot of work ahead, and your app will be dependent on the site not being changed.