G+: how to get plusone feed via api call? - google-plus

i've googled all over, read through the APIs.
The best I can find is this snippet, and I have no idea how he figured out this much.
anybody?

This guy appears to have reverse engineered it with fiddler, maybe this is a private api and everyone is reversing it.

Related

How to make an API call without exposing the key (HTTPS)

I was working on a project, and needed to make an API call to my website https://dashboard.lawliet.host/api/setcoins, it took in a header Authorization, which was the admin API key.
I obviously don't want the API key exposed to the user if they check the outgoing requests, or deobfuscate the program. What is a good and easy solution to get around this?
What I did think of what to hash the API key in this program, and compare it with the key in my server. According to me, this will work, but I do want to know if there's a better/easier way to accomplish it.
P.S: English is not my first language, so if anyone could edit this question and fix any grammatical errors, I would appreciate it.
Thanks,
MisuteriasuKe

Forward Laraver 4 api calls

I have to forward all incoming request from api v1 to api v2. After finished process on the api v1 forward the same request to the api v2 and also process it.
I don't know what is the best way to do it. But, I'll try to do it through BeforeMiddleware or perhaps add some kind of filters on route.
What do you think about these approaches? If someone had a similar problem, I'll be thankful if you share your solution with me. Thanks in advance!
For this, here you can find a solution:
http://fideloper.com/laravel-http-middleware

How to authenticate docker hub api request?

I have been trying for the past several hours to make an authenticated request to the docker hub api. First of all, let me say that their documentation is very unclear. There are several different subdomains that you have to cycle through. The ones I have seen are index.dockerhub.io, registry-1.docker.io/v1/ auth.docker.com/token. There were others. But you get the point. Its like their api is managed by 30 different people or something and they forgot to have a meeting about how to unify their api. It feels like I have read just about everything I could find on the internet about how to do what I am trying to do, and it still is very unclear to me what I am supposed to do.
Their documentation states that I am supposed to get an auth token before making certain request. Ok. Fine. How do I do that? I got lucky and stumbled across the endpoint, https://auth.docker.io/v2/token/ no thanks to their api. I found it by just guessing. I don't know that version 2 is capable of even doing what I am trying to do.
What steps do I need to take to make authenticated request to the dockerhub api. What I am trying to do more specifically, is I am trying to query information about the given images that are on the hub, like the size of the images, and the basic port information that is available. I know its possible, because I have used services that do it. So, how do you properly authenticate request to get this information?
So after a few more hours of working on this problem, I came across someone who had similar issues and wrote a blog post about exactly how to solve it. The short answer is the endpoint that was missing from the docker api documentation is https://cdn-registry-1.docker.io/v1/. Why didn't they document their api better? I don't know. If anyone wants to read the full article about how this is done, you can find it at http://www.appcontainers.com/requesting-image-information-using-the-public-docker-api/
This was the most helpful article I have found on the subject. Hopefully this will help some other poor soul who is trapped in the confusion known as the docker api.

Tumblr API change and the downfall of certain apps

I've searched endlessly for answers, and I just cannot seem to find anything!
I use an app (Mac) called Hyperimage for my Tumblr blog.
Since the developer has completely abandoned this app (not returning any customer service emails, fixing this problem, ignoring a refund request via PayPal until I had to complain, etc.) I cannot figure out how I could possibly fix the API, myself?
I'd be very grateful if I could be pointed in the right direction!
Thank you!

Twitter site-streams

I would like to use the twitter site-streams but I can't find a way to use them. There is no API-docs online and how to access site-streams.
Does someon have an example in php or better c#?
Are there any API-samples or a full API-doc?
Thanks
Matthias
I called oAuth before doing something similar to Shannon Whitley's user streams example. Use the curl commands generated for you at dev.twitter.com to double check your C# generate urls.
The site stream url is buried in the top middle of the doc (/2b/site.json?follow=1,2,3,4,5) # dev.twitter.com
I'd also follow #sitestreams as well to get heads up on site stream restarts.
The API looks to still be in beta, I found this. It's not a lot of detail, but the post was only a few weeks ago so it is something pretty new. It uses the same REST API that all of twitter uses so if you are familiar with that you should be able to use what it gives you.
If you need a tutorial on REST with twitter here is a decent tutorial. It is using basic authentication so I do strongly recommend that you use OAuth instead.