Apple Watch Activity App API - apple-watch

Is there an API for the "Activity" app? For example, I want to retrieve information from the "Exercise" section of the app (calories you burn) and I want to retrieve the personal information you type in when you first open the app. Is that possible? And how do I retrieve this information?

There's no API specifically for the Activity app. You can, however, access much of the information it displays by making use of the HealthKit framework. Check out the documentation here.

Related

Is it possible to use Apple Music's MusicKit SDK to play user's own station?

I'm trying to allow user's to play user's own station in my app. But after some research, I couldn't figure out whether it's achievable.
As shown below, I want this particular station which Apple Music generated for the user. Does anyone know if Apple make this API public?
You can use the recommendation API, which provides the user's personal station.
https://api.music.apple.com/v1/me/recommendations
More about it here - https://developer.apple.com/documentation/applemusicapi/get_default_recommendations

Generating a notification on Facebook profile picture change

I am working on a Chrome extension that generates a notification whenever an entered Facebook profile changes his/her profile picture. I want to know if it is possible to do so using the Facebook API. I know we can get the current profile picture of the person using the API but how can we generate the notification? Please guide. Thank you.
That´s what the Realtime API is for: https://developers.facebook.com/docs/graph-api/real-time-updates/
I assume it would be the picture subscription of the User object.
What #luschn said is correct, you can use the Realtime Updates API. Would I want to add is that you can't receive the Realtime Updates client-side, which means that you need to set up some backend infrastructure before you can use them. Your Chrome extension "frontend" then need to be notified on a change by your backend...
See
https://developers.facebook.com/docs/graph-api/real-time-updates/v2.3#setup

Get Realtime Updates from a Facebook page

I am working on a web app that use Facebook login. The purpose of the app is to get information about fan pages that the user has in his account (for which he got admin privileges). I work mostly with the insights informations but this is not the issue. Now I would like to receive realtime update from the page like new messages, page posts reply etc. I've read the documentation https://developers.facebook.com/docs/reference/api/page/#realtime
and I don't understand the part about adding the app to the page. It is required that the app to be installed for example in one of the tabs? If so, is there a way not to do that and still receive the informations that I want? Also when I try to create a Realtime Update Subscriptions for the page object no "posts" field was available, then how to get realtime updates about it? I am a little confuse and any guidance and advise is more than welcomed.
P.S. I am using PHP SDK, if this helps with something.
I've read the documentation
How about reading it again?
I don't understand the part about adding the app to the page. It is required that the app to be installed for example in one of the tabs? If so, is there a way not to do that and still receive the informations that I want?
Quote from the docs part you linked to yourself:
Note: You might think that because you're adding this via the tabs API that this is a tab app. It's not. This app isn't visible to users as a page app and isn't managed via any UI.
Also when I try to create a Realtime Update Subscriptions for the page object no "posts" field was available, then how to get realtime updates about it?
You can subscribe to the page’s feed.

Is it possible to get the list of apps installed with specific (e g mine) Apple ID through Apple API?

I would like to put together a web app allowing users to get the full list of apps/software they installed during time using their Apple ID. I won't be storing their passwords or anything.
Is there an Apple API method for this?
This is not possible. The Apple API is a search API for the iTunes catalog. You can only retrieve informations about applications, not about users.
You can find more information here : http://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web-service-search-api.html

How to go about building an iPhone app that accesses a website with a custom UI?

I don't quite know how to explain this but I want to build an app that can access a website like, for example, Facebook, but I don't actually want it to be Facebook's website in the sense that I want to design the UI. There is a couple of apps like this already in the app store, one being called "Facebook Touch HD". I have managed to get an app to access Facebook with UIWebView, but it just goes to Facebook's mobile website, obviously.
Look at the Facebook IOS SDK.
You probably want to fetch data from Facebook using its APIs. Facebook actually offers a library for iOS, so you may want to check it out.
In general, this applies to any site that offers an API. Usually you can use NSURLConnection to make requests to get the data you're interested in (check the specific API's documentation for details); then you have parse that data (most services output data in XML or JSON).