How to include UPI payment URL inside Google QR Code generator URL? - qr-code

I want to include "upi://pay?pa=8871459686#paytm&pn=Paytm%20Merchant&mc=abc&mode=02&orgid=000000&paytmqr=abcdefg&sign=abc+xyz/pqr/+stu"
this UPI payment link inside Google QR code generator link but when I am adding this link inside the URL ("https://chart.googleapis.com/chart?cht=qr&chs=315x315%26chl=") I am only getting "8871459686#paytm" after scanning QR code.
What I tried :
https://chart.googleapis.com/chart?cht=qr&chs=315x315%26chl=upi://pay?pa=8871459686#paytm&pn=Paytm%20Merchant&mc=abc&mode=02&orgid=000000&paytmqr=abcdefg&sign=abc+xyz/pqr/+stuchoe=UTF-8%26chld=L
Please can anyone tell me what will be the right way to add this "upi://pay?pa=8871459686#paytm&pn=Paytm%20Merchant&mc=abc&mode=02&orgid=000000&paytmqr=abcdefg&sign=abc+xyz/pqr/+stu" inside google QR code generator link.

Since Google api is using "get" method, you should encode your parameter ("upi://pay?pa=8871459686#paytm&pn=Paytm%20Merchant&mc=abc&mode=02&orgid=000000&paytmqr=abcdefg&sign=abc+xyz/pqr/+stu")
In JavaScript & PHP, you can urlencode() function to encode the parameters.
variable = urlencode(text)
Send URL encoded variable value in google API URL.

Related

LinkedIn sharing SHARE_URL#HASH URL Param

I am faced with a LinkedIn sharing issue.
This issue probably reproducible from March 1st 2019.
I share some url e.g. https://www.linkedin.com/sharing/share-offsite/?url=SHARE_URL#HASH
Worked before: link in post(href) - SHARE_URL#HASH
Works now: link in post(href) - value of og:url meta tag from SHARE_URL#HASH page
So we lose request parameters in SHARE_URL and #HASH
How we can pass link for LinkedIn post into request?
You need to do URL-encoding with parameters you are feeding to another URL. So, this is what you should want...
https://www.linkedin.com/sharing/share-offsite/?url=SHARE_URL%23HASH
Remember, URL's use things like ? and # to indicate a special argument occurring after this character. So, for instance, example.com/share.php?title=thisistitleright?&..., how would the browser know that the first ? indicates the GET param and the second ? is a part of the title argument? Easy: URL encoding.
In case you want to know more: Official LinkedIn Share Documentation

Will Google Analytics treat url parameter as part of URL?

I need to incorporate my own parameters as part of url. (e.g. #student=DD&start=Date1&end=Date2). However, I am cerncerning about if I add my part to the url, will it mess up my google analytics tracking? Basically, now my url is something like -- MywebsiteUrl?userID=AAA#student=DD&start=Date1&end=Date2&utm_source=CC....
What url Google analytics will track? is my website url -- MywebsiteUrl, or ``MywebsiteUrl?userID=AAA#student=DD&start=Date1&end=Date2`?
Thanks in advance!
Google Analytics will treat query parameters as part of the URL. However it will not treat #student=DD&start=Date1&end=Date2 as having query paramaters. As far as (native) Javascript and the GA tracking code is concerned the URL ends after the fragment identifier (#).
So your complete example
MywebsiteUrl?userID=AAA#student=DD&start=Date1&end=Date2&utm_source=CC
you will get MywebsiteUrl?userID=AAA. If the userID parameter contains personally identifiable information you need to remove it to conform to Google's terms of service. You can use a filter or the exclude parameters-box in the view settings.

Documentation for Google maps MarkerImage url string in constructor

The first argument of the google.maps.MarkerImage class constructor is a url string with several GET variables.
This is an example of the url string in use. The color variable is clear, but what do the other variables do?
Yes, what Trott says. Basically the markerimage URL is a relative or absolute url to an image, nothing more or less. So depending on where you get your images from, it might have a querystring on it (e.g. if the marker is to be dynamically generated by a server-side script). So in this case you just happen to be using the Charts API to get a dynamic image for your marker.
The first argument is not necessarily a URL string with several GET parameters. It is simply a URL string. Google Maps API uses that URL to retrieve the image. If there are GET parameters, they are used (or ignored) by the server from which the image is being retrieved.
The example you link to contains a URL using Google's Charts API. The definitions for the parameters are at http://code.google.com/apis/chart/image/docs/chart_params.html.

Link formation in a third-party .aspx website

I want to understand what link is formed when I click print button on http://recruitment.cdacmohali.in/TETPB/Regprintagain.aspx
Sample data is 2011360220 and 25/05/1980
I want to integrate it with my website and get the url it it making so that in the url I can pass the registration number and dob as variable and see the complete results.
I think it is using Session. You can not pass the data by QueryString

Linked api Integration

Hi friends I am using LinkedIn API to integrate LinkedIn profile and messages to my website.
I got one sample example throgh googling. But the output is coming in XML output.
Then, how can I bind all those things to my website controls?
You should prefer java script API of linkedin
for more details visit Linkeidn javaScript api docs =>
Java Script API
You get XML output from LinkedIn such as XMLFile.xml.
Following example shows output in label.
DataSet tmpDs = new DataSet();
tmpDs.ReadXml(Server.MapPath("~/XMLFile.xml"));
lblUser.Text = tmpDs.Tables[0].Rows[0]["first-name"].ToString();
If you are using linkedin api urls, by default you get an XML response. You can add ?format=json at the end or the url to get response in json format instead of XML.
e.g.
http://api.linkedin.com/v1/people/~
will give XML result while
http://api.linkedin.com/v1/people/~?format=json
will give json result.
Hope it helps.

Resources