API code giving me a 4040 error - api

I am trying to create a link for making a Google review for my business. It asks to use my API, but when I attach the API with the corresponding code, it gives me a 404 error.
Here are their instructions:
Go to the Google Places API.
Enter your business information in the “Enter a location” field at the top of the map.
Click your business name in the list that appears.
Your Place ID will appear on the map, beneath your business name.
Add your Place ID to the following URL to create your link:
https:// search.google.com/local/writereview?placeid=
Using the example above, the URL with the Place ID added would be:
https:// search.google.com/local/writereview?placeid=ChIJj61dQgK6j4AR4GeTYWZsKWw
When I add my URL to this: https://search.google.com/local/writereview?placeid=EiUyNzg4IFNvdXRoIFN0LCBMaW5jb2xuLCBORSA2ODUwMiwgVVNB
I get a 404 error.
I am not tech savvy, but I am doing my best to understand this. What am I doing wrong?

Related

API Request URL returns "Invalid Access"

I'm trying to scrape data from a website but I have no experience with scraping or APIs except for making a Discord Bot once. So I followed the steps described here to find the API:
http://www.gregreda.com/2015/02/15/web-scraping-finding-the-api
The Request URL in the Headers tab with the important information is this one:
https://api.amiami.com/api/v1.0/item?gcode=FIGURE-119023&lang=eng
When I try to open this page, like he does, it only returns:
{"RSuccess":false,"RValue":{"HttpStatusCode":400},"RMessage":"Invalid access."}
If you want to try getting the Request URL yourself, the original page I used was:
https://www.amiami.com/eng/detail/?gcode=FIGURE-119023
Removing the language argument doesn't seem to change anything either. So I guess there's something that detects that I'm not accessing it in a normal way. Any Ideas on how to fix this?

How can I get an url to a statement using a Chargify API?

How can I get an url to a statement using a Chargify API?
I want a user to be able to click a button in my application which would open an invoice in a new tab in browser in Chargify. I think I should use some Chargify API to obtain the url to open. Could someone help me find the API I need?
I tried to search for a needed API here, but with no success so far.
I was only able to figure out how to retrieve an invoice as a plain text, as a basic html and as a usual html here. Does it mean that Chargify expects me to only show invoice to a user inside my application and not inside chargify itself?
There is no publicly accessible url for a statement. As you noted, you can retrieve the text or html (or pdf I think?) representation of it and display that to your user.
Or (if it is enabled) customers can go to the Billing Portal to view their statements. https://help.chargify.com/settings/billing-portal.html
(The newer Relationship Invoicing platform does have public urls for the invoices. https://help.chargify.com/invoices/differences.html )

How to look up other people's Google Custom Searches

When I attempt to use someone else's custom search by its url, I get taken instead to my own custom search admin page.
How do I use someone else's custom search url?
For example, customsearchengine.com has an entry for the OpenDOAR search.
It gives the url as: http://www.google.com/coop/cse?cx=016766439200934687091:ln-icm1qyko
When I put this in, I get redirected to https://cse.google.com/cse/all
Perhaps that custom search doesn't exist anymore. Bu the same happens when I try to look up other custom searches.
http://www.customsearchengine.com/ is super old, and not affiliated with google.
Custom Search's URL format has changed since 2008, so instead of http://www.google.com/coop/cse?cx=016766439200934687091:ln-icm1qyko
you can use
http://www.google.com/cse?cx=016766439200934687091:ln-icm1qyko
but that CSE doesn't exist any longer, so 404 error

How to show someone came from a link on my website?

It must be the full url, not just history or type. I have seen, on statcounter.com, where they show stats regarding where the referrer of our site came from. I want to show the exact link like statcounter shows under a tab.
Does anyone know how to do this?
You will want to use Google Analytics.
Google will generate a unique javascript code for you, you then paste it in your html, which activates the service. It's very easy to get started and the dashboard is very robust considering it's free. To get started, you can check this out: http://www.google.com/analytics/learn/setupchecklist.html

Github API - trying to access multiple pages of /users

I am playing around with Github's API and I noticed that they allow anyone to request all users that have signed up in chronological order.
https://api.github.com/users
http://developer.github.com/v3/users/
I was trying to get the second page but for some reason their pagination isn't working for me. I wasn't sure what I was doing wrong.
https://api.github.com/users?page=2
https://api.github.com/users?start_page=2
http://developer.github.com/v3/ Under "Pagination".
Anyone know the right way to do this?
Check out the returned HTTP headers for the https://api.github.com/users resource. Specifically, look for the Link header, which will look like this:
Link:<https://api.github.com/users?since=135>; rel="next", <https://api.github.com/users{?since}>; rel="first"
So, what you need to do is do an HTTP GET on https://api.github.com/users?since=135 to get the next page. After that, check the Link header again and you will get to the next page, etc. Also notice the provided URI template https://api.github.com/users{?since} which enables you to start at any id.