API for apple.com purchase/order history - ios

Does anyone know of an API for fetching order history from apple.com specifically I am looking for a way to pull invoice ID's and Serial numbers from orders for physical hardware such as mac laptops.
Then will use this information in another system but cant seem to find any API or way to get this information programmatically without scraping.

I've checked the Apple Developer website and searched for the public API's. There is no available API for what you're trying to do. You could always try to use Web Scraping to get an API. I'm not certain if this is against the Apple TOS, but you could try doing that.

Related

Retrieving YouTube API v3 data for all my channels

I have five YouTube channels that are all under one user account (one e-mail address). I can switch between them at will within the YouTube mobile app, YT Studio and so on by using the app's Switch Account function.
I also have developed some processes that will retrieve statistics about my primary channel's videos and store them into a database.
I would like to also retrieve the same information about all my other channels, but I don't seem to be able to do this. Those processes can see only PUBLIC information about the other channels. So unlisted/private videos are skipped, for example. The simple solution would be to create credentials for the other channels of interest and apply those new credentials to the processes, but I don't see a way to create credentials for any account other than the primary on the Google Developer Console
Am I missing something about Developer Console that would allow me to create other sets of credentials for the other channels? Or maybe there's a "switch account" equivalent I'm not aware of? Or what other solution is available for multiple channels?
According to this link, this is the correct forum for my question, but Google seems to be unresponsive more often than not.

Unable access to Device Access Console

I spent several days on google support pages, with no results. I can't finalize the payment to access the device access control services, in particular the APIs related to the Google Nest Thermostat. Has anyone had a similar problem? Is there direct support to ask for help?

How are API keys distributed and used within 3rd party apps?

I used to use a program called mps-YouTube. It allows to easily play YouTube playlists. Currently it doesn't work anymore, since the Limit has been reached (presumably because every mps-YouTube user shared the same API key).
This made me wonder. You need to register an API key with google, yet you can just use YouTube for free (even adblocking works without any issues).
Since I have to use the API anyway for watching YouTube videos with my browser and don't have an API key, why does mps-YouTube need an API key?
And what would prevent someone from just snatching the key from an open source project like mps-YouTube and using it anywhere else?
Since I have to use the API anyway for watching YouTube videos with my browser and don't have an API key, why does mps-YouTube need an API key?
API key is used by Google to identitfy the application making the requests to its api. If to many requests come from this application then the application will be shutdown or throttled.
And what would prevent someone from just snatching the key from an open source project like mps-YouTube and using it anywhere else?
It is against Googles TOS which application developers agree to when they create their projects. To share any google keys or credentials with others including putting them in opensource projects. So this isn't an issue as it wouldn't / shouldn't happen. See: Can I really not ship open source with Client ID?
mps-YouTube TOS violation
I did a quick search of the source code for that project and found the API key in the code is in fact still live i have posted an issue for them Google TOS violation explaining why this is a bad idea.

Getting api access for a youtube account you are managing

I manage a youtube account but it seem I can not use the youtube analytics api to pull reports. I can go to the youtube analytics sections of the account and pull the reports but I want to do this programmatically using the api. Is there some other step that need to be done to get access to the account I'm managing.
Oharr, I'm facing the same issue and wrote my own question.
There's an alternative automated way to get your reports though. If you use BigQuery, you're able to use the 'Transfers' section. That interface actually creates the Jobs and will give you reports periodically. It also allows you to 'backfill' data from the past up to 180 days.
Please refer to YouTube Channel Transfers.
You can also get reports for Content Owners. But the Content Owner transfers wont' work for me since I get 403 responses. Need to figure that out myself...
Yes in order to pull the data via code you need to get an API key/ service key or Oauth credentials please refer this link for more details.

Twitter feed on corporate site

I have a corporate website that I want to pull in tweets to, but i'm getting a rate limit using the http feed. So, I want to use an authenticated method to get the tweets.
Do I really have to register an application to do this, even though it's not really an application and my users will never be entering or changing the twitter account info.
Also, my corporate site doesn't have a public address, and registering an application through twitter appears to require a public url. So how can I get around this? Do I have to create a "fake" application with a public url, just to generate my keys?
Thanks for any help on this.
If your site is behind a proxy server along with all your users, using Javascript/jQuery won't help. All the requests will still be coming from the same IP and will hit a rate limit, as you're doing now.
The other issue is that you don't need to register an app to request a feed. Apps are only needed for Oauth, and getting a feed doesn't need that.
The best way to deal with this is to get the feed with a server script, store it on the server, and then deliver the server copy to the web pages. If you request the feed less than 150 times per hour, you won't have a limit problem.
If you want more than a single feed, you can use the streaming API to get all the tweets for up to 400 keywords or from up to 5,000 users. This still doesn't need a registered app, since the streaming API still allows Basic Auth.
Just wanted to post this for future reference and in case anyone else has the same question. The solution to my problem, was to register an application on twitter. But since I'm just using a single user, you don't have to do the regular OAuth steps of generating a request for a key, getting the response etc. Every app you register in twitter get's its own "Access Token" that you can use to retrieve tweets etc. So, this is what I ended up doing to solve the problem I was having.
Additional details: My main concern was having to do the OAuth steps of requesting an access code etc... Since my application is only a single user implementaion (just pulling in our company related tweets from company held twitter accounts), it just seemed unneccesary to have to do all of that. But what I found was that when you register an app on twitter, you get a private access token for each app. You can view a little information about that here: https://dev.twitter.com/pages/oauth_single_token.
It sounds like you are pulling the feed down over http on the server? You could just limit the updates so you don't hit the rate limit.
I would recommend instead doing this on the client side. There are a lot of very easy to use embeddable java script twitter clients out there. The rate limiting problem would dissapear as the feed would be coming from the desktop and not the server (unless they just kept refreshing it).
The Twitter developer wiki lists a few.
JQuery plugin for Twitter
Tweet (another JQuery plugin)

Resources