cancel Apple inapp Purchase api - api

I need to cancel an Apple API subscription from backend (when a user deletes their account for example).
There is an API call to verify receipts, but I cannot find one to cancel. I looked at apple developer doc but could not find it.
Is there such an API? If not, what is the correct way to do this?

Unfortunately, there is no API to cancel a subscription. User have to do it themselves in the manage subscription screen.
For their convenience, you could provide a link to that screen in your app or via an email.

Related

How to cancel buyer's agreement programmatically? (PayPal)

I want to cancel a buyer's recurring transaction entirely automatically (without manual logging into PayPal account neither for us nor for the customer) by our software.
https://developer.paypal.com/docs/api/ and https://developer.paypal.com/docs/api/payments.billing-agreements say that we can use /v1/payments/billing-agreements/<agreement_id>/cancel.
But it requires authorization. We do not want to ask the customer to authorize on his own. We want to do it from our side entirely automatically.
Is it possible to obtain an authorization token for this situation without customer's intervention? If yes, how?
The authorization is not required by the user in order for you to cancel the agreement, it is API authorization that you need to interact with your billing agreements programatically.
I would have thought that if you have access to the details of their billing agreement in your business Paypal account, you should have access to this information once you are authorized to communicate with the API and thus authorization to cancel any agreements that are active in your account.
The PayPal API credentials that you use to communicate with the API should be one associated with the PayPal account that has access to the agreement details.
Once you're there, you can retrieve the PayPal agreement by the Agreement ID and call Cancel on it using the SDK.
Find the SDK for the language that you wish to use (you didn't
specify a language in your question) and follow the quick start
guide. The quick start guides contain details on how to create API keys to access your account programatically.
Load the agreement details using the Agreement ID, examples for
each are linked here. It is possible to load all agreements for your account using the api too, so you can get all of the Agreement IDs and loop through them if you wish.
Call the cancel method on an agreement to cancel it
I hope this helps!

Start a Hangouts calls from a website

I want to setup a "Hangouts"-button on my website in a way that my end-users have to click on a button, a sales person is being notified and will start a hangout call and shares the link of that call (via a chat, preferably). So end user can join that hangout call provided via the link without any google account and by just entering his/her name.
I have setup Hangouts on my site via https://developers.google.com/+/hangouts/button and my application via https://developers.google.com/+/hangouts/getting-started but still I didn't find a programmatic way to do this. IMBK I think there is no document available either officially.

Onesignal: Web push notification for capture user votes

I am trying to implement a mechanism to push web notification to users and ask for their votes. I want to capture and store user's votes in my DB based on the feedback given.
For this purpose, I am using Onesignal's web push notification. I have managed to add a tag to each user to identify the user. So I can now send notifications to specific users. But when user clicks on the notification, I want to have the information about the notification like player-id, the actionid, notification id so that I can capture this information in my DB. I am not sure how I can get that.
Chrome and Firefox can support web push webhooks which may help, but I still don't have any solution for Safari. Can someone please suggest any alternatives or workarounds?
Thanks!

Can the instagram api pull likes and comments from an account that I do not manage

I want to pull likes and comments from any account that I specify. Can this be done with the Instagram API or do you have to have the accounts permissions to pull this info.
Essentially I want to be able to analyze this data without having log in credentials for the account.
Thanks!
Following the June 2016 changes to the API, you will need to invite the other users to be "Sandbox Users" of your API client. And even then, the access will be limited to their last 20 posts. Here's a quick explanation of the new Instagram API rules.
TL;DR
Sandbox users are other Instagram users that you “invite” to your
client. The main reason to do this is so that your app will then be
able to “see” their last twenty posts in addition to your own. In
other words, when they accept the invitation, they show up on the tiny
desert island where your app lives.
So you don't need their actual login credentials, but they do need to accept your invitation in order for it to work. The only other alternative is getting your app through the submission process to "go live" but there are very few use cases which they will accept anymore.

How to send invitation to facebook friend from my application

Hi I am working on Rails application. My application is currently in 'invitation only' mode. What I want to do is once user signed up to my application then user should be able to invite his Facebook friends to my application. So what is the best way to do it? I want to do similar like pinterest does. pinterest is also in invitation only mode. But still it allows my facebook friend to whom I have sent an invite to sign up directly. So how I can implement it in my application? Any guidance will be helpful..
Use the requests dialog:
http://developers.facebook.com/docs/reference/dialogs/requests/
Store the list of user id's you get back (which you need to do anyhow
to delete the request programmatically when the come to your app)
When a user tries to login to your app, ensure that they're on your
list of id's you stored earlier.
Delete their app request
See http://developers.facebook.com/docs/reference/dialogs
Deleting Requests When a user is directed to your application, by
clicking a Request from the application, the games dashboard, or from
a Request notification, you must delete the request after it has been
accepted. Requests are not automatically deleted once they have been
clicked, thus it is the developer’s responsibility to clear them once
they have been consumed.