iTunes API for GIfting, not just Searching? - php

I'm struggling to interface with iTunes by way of automating the Gifting process for an App via a traditional website built on PHP running on linux.
Their Search API works fine, and I have also downloaded and processed the full EPF for the App store, but now need to go upstream and make requests against iTunes. It seems like this should be a well-defined process, but I'm running into a wall and see numerous posts about the lack of a public API.
Closest I've come to a clue is this perl module:
http://linux.softpedia.com/get/Programming/Libraries/LWP-UserAgent-iTMS-Client-21878.shtml
which was last updated around 2008, so no good there.
If anyone can help set me straight on this topic, it would be most appreciated!
Thanks,
Charlie

Are you attempting to send your users directly to the "Gift this.." for a song or app? This isn't currently supported by iTunes for app developers or affiliate partners, but you can reverse engineer the store to use the same urls:
Gift a song:
https://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/giftSongsWizard?salableAdamId=516353670&productType=S
Gift an app:
https://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/giftSongsWizard?salableAdamId=479662730&productType=C
I wouldn't count on iTunes responding to questions or problems you have if they change the url structure in the future.

Related

PHP - interaction with google play market / google profile

I really tried, but didn't find any matching answers, most of them are about Android dev/single app info, google play scraping etc.
Anyway, excuse me for possible duplicate.
So, i can see the list of apps which are/were installed on my android device in google play interface ("My Apps"), so, is there any way to get that list in my PHP application, through some kind of API, maybe?
Question is not about tracking my own apps, but about tracking installs of any random app from the given list, on a specific device/google account
What i want to achieve:
User installs an app from the list
After some time/trigger, PHP backend checks, if this app is installed on user's device, and saves this info to DB
EDIT: It is meant, that user agreeds to share this information, to get some kind of reward, after installing an application.
Thanks for your attention.
No, which apps a user has chosen to add to their device is treated as confidential information, and a random person cannot just query that from a server. There are only two ways you could check this:
Do it like advertising libraries do. They use the Google Play referrer API which finds out the referral code which prompted the install, and sends this back via the Ad library in the app.
Or have your own app which is on the device and uses PackageManager.getInstalledApplications() to find out the applications on the device.

iPhone app that talks to the server

I need to build an iphone app that talks to a website. Logins, fetching data etc.
I have built few apps that does these using website's api but the website I'm working with now does not have one. I don't have enough knowledge of PHP or RoR so I'm not sure if I could build a back-end API from scratch and then start on the ios development.
I did some research and it looked like there are websites like parse.com or appactive where they help you with back-end api. Though, I looked around the website and read the about page but I'm still not sure how they work. Could those services help me if I already have a server/website running and I need an app that requires login and data exchanges?
Jus a note, in 2016 Parse has closed (it's now open source and you run it on Heroku or whatever). There are many other "baas" such as Firebase etc.
Since there seems to be some confusion,
(a) your current service has no API. it is, thus, unfortunately essentially useless so your most absolutely time saving step from here would be just scrap it and use parse (or another baas) as the backend. you can have parse up and running in minutes. what previously took server developers man-years is now just like "a consumer product", just make a few clicks to add column-names
(b) your current service has no API. assuming yo DO WANT TO continue to use it, you will have to somehow add an API, using php or whatever. there's no way to avoid this. IF you do that, then you could (if you wanted) make a "basic" API that parse can get the info from, and then use parse to actually connect to the ios/android builds (since that is so easy)
TBC, here's literally how you do that in Parse,
https://parse.com/docs/cloud_code_guide#networking
"Cloud Code allows sending HTTP requests to any HTTP Server" it's that simple.
As I mention above, it's far easier just to scratch your current backend and change to a bAAs (such as Parse). you have to "go with the times" you know?
Note that the development and testing of an API on a service is incedibly time consuming, it is a huge job for a team.
Here on this question you seem to be asking about bAAs and how they fit in the formula. the answers are:
(1) if you simply scrap your current service, do everything on a baas: it is trivial. what used to take literally man-years is now a few clicks
(2) in terms of "helping you ADD AN API to that service". bAAs cannot help you with that in any way and is irrelevant
(3) if you DO have a service with an API, yes it is relatively easy to have bAAs "link in" to that. (i include literally the doco from pare on doing that above)
Hope it helps!!!

iOS/Android application with server API's to pass information

I'm working on project for iOS/ Android application that allow user to Register/Login and than create/share and store files to the server and share it with other users.
To meet this purpose i been following this tutorial: http://www.raywenderlich.com/2941/how-to-write-a-simple-phpmysql-web-service-for-an-ios-app but i found its very basic and i need more information before i start working on it.
My question is, how to create an application for example like Path: https://path.com or instagram, that allow apps to sync with server using API's and pass data between server, phone and users without offering Website to users?
Is there any pre-built open source php/mysql API's that we can use for this purpose?
Any brief tutorial that explain steps to do this (since until now i use to work on basic iOS app and need not require any interaction to server and stuff)?
In project im using php/mysql, in my research i found people also advice to use AFnetworking (http://afnetworking.com/) to replace stranded url fetching, any opinion on that?
I'm hoping to have great discussion on this question since there is lot of questions out there on this topic but non have full descriptive answers!
you can create our own server using tomcat and get the path that act as url for you..and there are many third party framework available for parsing or in iphone they have there own using NSJSONSerialization.you can read the detail from this link.
http://developer.apple.com/library/ios/#documentation/Foundation/Reference/NSJSONSerialization_Class/Reference/Reference.html

Getting on-phone iPhone / Android contacts via PHP Web App / Facebook Deep Linking Workaround

Here's the situation. I'm working on a PHP-based web app for a company with a desire to setup an SMS share widget on their mobile site. The goal is to allow visitors to mass-share via SMS to their list of mobile contacts, in much the same way that Cloudsponge does this for e-mail contacts via the Google/Hotmail/Yahoo/Exchange APIs.
I was told repeatedly that this is impossible, but after a bit of research we've come across the possibility of accomplishing this via the Facebook deep integration built into newer smartphones and mobile devices.
SO, being completely inept, and coming into this with zero knowledge of how I might accomplish this... and having spent hours researching Google turning up very little / misleading information, I come to you. Where to look? What to do? Not looking for a blueprint here... just a hand (or two, or three :-) to point me in the right direction.
You can't access any system feature (GPS fine location, Contacts, Câmera) from a web app running in a mobile browser. Just for security reasons.

salesforce.com plugin for website

There is a company that uses salesforce software to keep track of all customers and the performance of the employees. I am building a points website, which is about the manager rewarding points to employees for a job well done. I want to integrate the info from salesforce software database about the employees and present it on my website so that the manager can see the number of deals closed by each employee and accordingly allocate points to that person. is there any kind of a plug-in or something like that? if not, how can i achieve this? My website is a cms, built on php.
Thanks.
The best way to handle this situation is to import the enterprise or partner WSDL into your PHP CMS. This will enable you to make webservice calls to Salesforce.com and access almost all of the data sitting on the Salesforce.com server.
It'll also enable you to write back to Salesforce.com servers. There is very good documentation and code samples out there try this link first:
http://wiki.developerforce.com/index.php/Web_Services_API#PHP
Hope this helps!
Check out the PHP Toolkit, which is a PHP wrapper around the salesforce API.
Be aware, there are some quirks and it's some bulky functionality. Salesforce limits the amount of hits you can have on the webservice, so you may need to do a cron-based "grab" of info and store to your site at various intervals. You'll get a rude awakening when you're testing and run out of connections for the day (not applicable to people who pay the premium level of Salesforce) It's also rather slow and has a propensity to timeout often....so be prepared to write code to handle the exceptions that will be caused.
Your server will need to have CURL installed and properly functioning.
Good luck!

Categories