I have question about POST API.
I've made simple website. On the other side I have program which is sending some json data with POST method. Person who made this api want me to give them URL for this. I've never deal with api's so it's very difficult for me to find some starting point. Any one can help with some tutorial or advice? ;)
Related
There is a website https://api.somewebsite.com/
I need to get api methods (routes) and queries to get data from them
Lets pretend they dont have any docs.
Is there a way to do it?
I tried to find some website to do that for me.
I didn't come with a better idea than bruteforce uri and look at the responses
This is additional question in regards to another relevant question:
Facebook Authorization url, scoped authorization url and token url
, I am new to OAuth2.0, so assume I didn't learn literature well back in high school!! (I have seen some people with very short learning curve recommended to read the Facebook login API documentation)
I have looked at it, but didn't find the
Authorization URL
AND
Access Token URL
While I was searching for some demos, in one video it used
https://www.facebook.com/v6.0/dialog/oauth?
key being: v6.0
in another it used:
https://www.facebook.com/v15.0/dialog/oauth?
key being: v15.0
and in the original post, the kind person who answered seemed to suggest to use:
https://www.facebook.com/dialog/oauth
(which didn't mention the version ID at all, that worked for me, and I like it; easier to remember and use. HOWEVER, previous two also kinda make sense, I don't think Facebook gonna stop enhancing and upgrading its OAuth2 APIs.
and if I go back to the original question, how can I find the latest URL info for above mentioned endpoints?
Thank you a million in advance!!
if this question was too basic, please be tolerant, I am new to OAuth2.0!
I was already aware that using Twitter's API you could link any tweet you made on Twitter onto a feed on another website.
However, I want to possibly, in the future or right now, be able to use YouTube's API to link my posts on my community page to my website updates. Of course, I would rewrite the code and get rid of my Twitter updates and API and replace it with the YouTube community posts API, but first I need to know if it is even possible. I know, YouTube community posts are relatively new, so there might not be an easy answer for this. Maybe someone could point me in a direction to find answers, if there are any. I could make a post about this on the YouTube support forums, but I'm sure you're all aware that the most I'll get is an automated response, not a real person to help me out. Any help is appreciated. I look forward to your responses and advice.
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.
For a project, I wan't to build a webapp, which shows (semi-) real time Tweets with specific keywords.
I'm not sure how to start. Can somebody explain to me how I need to start. I have a PHP framework for my website.
With what language do I need to retrieve data form the Twitter API. JSON? PHP?
Where can I find a nice tutorial?
I hope somebody can provide me a few lines of code, just to help me on the right track.
Thanks!
- Sammy
You could use the Streaming API with the Phirehose library (PHP).
The method "filter" of this API catch all the tweets with the specified keywords in real-time. You can take a look at 140dev for an example of application using this library.