Pushed offers a very powerful subscription management system so you can handle subscriptions in your apps and channels. We call it Members-Only feature, and it is meant to easily manage subscriptions in Pushed.
Managing subscribers is a feature available in Pro and Enterprise plan.
First of all, to enable Members-Only feature you must set your app or channel as Private (in settings), and then toggle the Members-Only switch:
Once you have enabled Members-Only feature you will gain access to the Manage Subscribers features:
In this screen you can perform all the operations related to managing subscribers: invite a user, remove a user or check an invitation.
Inviting subscribers is really easy. We will cover two ways of doing it (using the web application and programatically using our API). Once the user is invited he will receive an email message and a Pushed notification. Once the users accepts the invitation, the user will be shown in the Subscribers tab.
To invite a user using the web application all you have to do is to Pending Invitations and click in Invite New User, the following modal window will be shown:
In the modal window you can specify one, or multiple emails (separated by commas).
If you want to invite user programmatically using our API, here's the documentation of the request you can use. Additionally, you can find a sample of the API request here.
curl -X POST -s \ --form-string "app_key=your_app_key" \ --form-string "app_secret=your_app_secret" \ --form-string "source_type=your_source_type" \ --form-string "source_alias=your_app_or_channel_alias" \ --form-string "emails=emails_list_comma_separated" \ https://api.pushed.co/1/subscription/invite
If you want to remove a subscriber, you can do it any time in the web application, at the red button :
Or you can also use our API endpoint:
curl -X DELETE -s \ --form-string "pushed_id=user_pushed_id" \ --form-string "api_key=user_api_key" \ --form-string "subscription_alias=alias_of_the_subscription" \ --form-string "subscription_email=email_of_the_subscription" \ https://api.pushed.co/1/app/subscription
Checking Invitations Status
If the invitation has been accepted, it will appear in the Subscribers tab, otherwise it will be visible in Pending Invitations tab.
Sending notifications to subscribers
After the use has accepted the invitation, you can send him notifications directly using the "Send Notification" button as shown below:
Or using the specific endpoint in our API, here's a sample request:
curl -X POST -s \ --form-string "app_key=your_app_key" \ --form-string "app_secret=your_app_secret" \ --form-string "target_type=subscription_alias" \ --form-string "content=Your notification content." \ --form-string "subscription_alias=alias_of_the_subscription" \ https://api.pushed.co/1/push
If you have any more question, please do not hesitate contacting us.