does the apple itunes api allow me to get a song programmatically? - iphone

I want to create an application that will let users get new music from the itunes store, and do it through my interface. Is it possible to do that through the exposed API?

You can not instruct iTunes to buy something, buying is only possible via the iTunes interface.
You can, however, create links to iTunes content using iTunes Link Maker, and then open the according iTunes item via -[UIApplication openURL:].
The links you can create via iTunes Link Maker refer to one specific iTunes item only, and can not be constructed on the device, so you would either have to hard-code the links, or (which i would prefer) get the links from a web service, via which you control what is displayed in the app.

Related

How can I know app information from appstore programmatically

I am developing one application. In that I want to know some X application is available in AppStore or not programmatically. So please tell me how can I access and get the information from app store programmatically.
You could use for that purposes iTunes Search API. There are a lof of different filters by which you could find apps from iOS App Store and Mac App Store.
The Search API allows you to place search fields in your website to search for content within the iTunes Store, App Store, iBookstore and Mac App Store. You can search for a variety of content; including apps, ebooks, movies, podcasts, music, music videos, audiobooks, and TV shows. You can also call an ID-based lookup request to create mappings between your content library and the digital catalog. Terms and conditions apply.
The Affiliate Program allows you to earn a commission on qualifying revenue generated by clicks initiated from your website or app into the iTunes Store, App Store, iBookstore, and Mac App Store. For more information on the Affiliate Program, see http://www.apple.com/itunes/affiliates.

How to get itune link of our own application?

I am new to iphone development .I am in to project where application iTunes should be able to share on Facebook,twitter.I want to know how to obtain the iTunes link of the application.
Thanks in advance
No you can't. You should give the link manually to the app or you should program the app to get the link from your own web server using web service. Here also you should update the link in you web server
The iTunes link needs your app id from iTunes connect. There is no way for your application to actually know that number. However the app does not need to be released already to get the link, only to be created in iTunes Connect. That way you can still implement sharing functionality within your app using the link, and only then upload your binary.
As everyone suggested, you need to create your app within iTunes Connect to get the App ID.
Once you have this, you can hardcode it into your app. An alternate way is to query your own server and have this information ready at the time the app is launched.
I would really suggest going for the hardcode method since the App ID doesn't ever change once it is assigned to your app.
Here's an example of how I usually embed the URL for my apps with its App ID: http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=APP_ID&mt=8&partnerId=30

access itunes via my own app

I'm newbie at this, so question -
I'm trying to create app which should be similar to native ipad/iphone reader. And I want users are be able to buy books via my app in itunes. I mean, apple approve new book, than user opens app, press smth like "buy" button and goes to app's page which contains approved book in itunes, than he can buy it using itune's account. is it possible to do?
No you can't open iTunes in your app..not only iTunes but any other app on the device..
You can just open them with URL schemes if the other app has one..

iTunes app link not opening iTunes

I just released an iPhone app and am updating its support site. I've used the iTunes Link Maker to create a link like below. One time, it opened iTunes, the rest of the times, it has not. I've tried closing iTunes, accessing the link from both Safari and Chrome, but each time I only see the iTunes preview in the browser.
Example:
My App on the App Store
ANSWER: (see discussion below)
Pulling the href from the "View in App Store" link in iTunes Connect:
My App on the App Store
NOTE: Trailing params might be different in your own case.
SEE ALSO:
http://www.apple.com/itunes/affiliates/resources/documentation/linking-to-the-itunes-music-store.html
I usually grab the link from the apps' detail page in iTunes Connect. There's a link named View in App Store that has worked for my so far. Just make sure to replace the locale identifier (defaults to us) in the link if your app is available in multiple stores.
Just use iTunes Link Maker and remove the country code (i.e. "us") out of the link and it would always work open iTunes always and not a browser on the way (if there is iTunes installed on the target system).
You can also remove the app_name you don't really need it (if your app name would be changed nothing happen, actually the name is ignored).

Sharing application link via the same application, iphone

Possible duplicate:
How can i give app store link in my apps before approving another apps
linking to an app on the Itunes store
How to link to apps on the app store
Hi all,
I'm a littile bit confused. I need to provide the download link of my application (the iTunes link) inside my application. ie when the user would like to invite others via mail or some other means, have to provide the application link too with that.Is there any way to provide that before submitting the application to apple. Or i need to use the link as an update after getting my application approved by apple?
To be able to provide an iTunes URL, you should know the unique ID for your app and AFAIK, there's no way to get this ID before getting your app in the store first.
You can try and construct a search URL, but it doesn't always give the desired result. For example, I currently have only one app in the store, but there's another developer who uses the same developer name as me, so a search URL for my app produces two results. If this is your first app, and searching for your developer name produces no results, it could be safe for you to go with a search URL.
Even if you use a search URL, you will want to replace it with a proper iTunes URL in the first update.
Read this article by Bjango for more information on iTunes URLs and quirks of using search URLs: Dissecting iTunes links