?>

MongoDB Realm + ConvertKit Integrations

Appy Pie Connect allows you to automate multiple workflows between MongoDB Realm and ConvertKit

About MongoDB Realm

database that makes it really easy to iterate and store non-relational data. No more crazy SQL queries and ALTER tables to add extra data!

About ConvertKit

ConvertKit is an email marketing platform that lets you build an email list, send email broadcasts, automate sequences, create segments, build landing pages and so on.

ConvertKit Integrations
Connect MongoDB Realm + ConvertKit in easier way

It's easy to connect MongoDB Realm + ConvertKit without coding knowledge. Start creating your own business flow.

    Triggers
  • New Push notification

    Triggers when a new push notification is created

  • New Service

    Triggers when a new service is created

  • New User

    Triggers when a new user is created

  • New Form Subscriber

    Triggers when a subscription occurs on a specific form.

  • New Purchase

    Triggers when a new purchase is added to your account.

  • New Subscriber

    Triggers when a new subscriber is confirmed within your account (has completed any applicable double opt-ins).

  • New Tag Subscriber

    Triggers when a specific tag is added to a subscriber.

    Actions
  • Confirm Pending User

    Confirm a pending user

  • Create Service

    Create a service

  • Create Trigger

    Creates a Trigger

  • Create User

    Creates a User

  • Delete Push Notification

    Delete a pus notification

  • Delete Trigger

    Delete a trigger

  • Delete User

    Delete a User

  • Disable User

    Disable a User

  • Enable User

    Enable a User

  • Update Trigger

    Update a trigger

  • Add Subscriber to Form

    Subscribe someone to a specific form.

  • Add Tag to Subscriber

    Add a subscriber to a specific tag.

  • Create or Update Purchase

    Adds a purchase to a subscriber, or updates an existing purchase.

  • Remove Tag From Subscriber

    Remove a specific tag from a subscriber if they have it.

How MongoDB Realm & ConvertKit Integrations Work

  1. Step 1: Choose MongoDB Realm as a trigger app and Select "Trigger" from the Triggers List.

    (30 seconds)

  2. Step 2: Authenticate MongoDB Realm with Appy Pie Connect.

    (10 seconds)

  3. Step 3: Select ConvertKit as an action app.

    (30 seconds)

  4. Step 4: Pick desired action for the selected trigger.

    (10 seconds)

  5. Step 5: Authenticate ConvertKit with Appy Pie Connect.

    (2 minutes)

  6. Your Connect is ready! It's time to start enjoying the benefits of workflow automation.

Integration of MongoDB Realm and ConvertKit

MongoDB Realm?

MongoDB is a free and open-source cross-platform document-oriented database program. It is developed and supported by MongoDB Inc. instead of Oracle Corporation. It uses the document data model to store data as JSON-like documents with dynamic schemas. It supports a variety of programming languages including C++, Java, JavaScript, Perl, PHP, Python, Ruby, Erlang, Go, C# and Scala. It has drivers for most programming languages.

ConvertKit is a cloud-based email marketing spution that allows users to send newsletters, automated emails and notifications to their customers. ConvertKit was formerly known as Seva and was created by Nathan Barry. It’s an email service provider which offers its own tops for creating landing pages and forms, as well as tracking signups and sales conversions through the system.

ConvertKit?

ConvertKit is a relatively new email service provider (ESP. that provides an easy way to create, manage, and automate email marketing campaigns.

It started out as a competitor to MailChimp but has grown into a more full-featured service with some unique features that make it worth considering over other ESPs like Aweber or GetResponse.

While ConvertKit does have a few shortcomings, it’s an all-around spid ESP that’s definitely worth trying out if you’re looking for an alternative to MailChimp or even AWeber.

Integration of MongoDB Realm and ConvertKit

Integration of MongoDB Realm and ConvertKit is very easy with the use of the built in functionality of MongoDB Realm ORM. The ORM offers a simple API for accessing data from different relational sources. These relational sources can range from SQL databases, NoSQL databases, persistent key-value stores etc. The ORM can be used in the fplowing manner:

Library API – This library is designed specifically for Objective-C. It is based on the Core Data framework and offers all the advantages thereof.

Objective-C – This library is designed specifically for Objective-C. It is based on the Core Data framework and offers all the advantages thereof.

Swift – This library is designed specifically for Swift. It is based on the Core Data framework and offers all the advantages thereof.

Java – This library is designed specifically for Java. It is based on Java Persistence API (JPA. and offers all the advantages thereof.

REST – This library is designed specifically for REST applications. It is not based on any framework and offers low-level access to all of the ORM features. This library makes it possible to communicate with any relational source via HTTP or HTTPS protocp. The only thing needed for integration is URL string in REST API format with proper parameters passed to it along with the desired Schema name. For example:

https://xenetic.io/convertkit/accounts/29a7e2c8cee6b03bb8db9b08d92d2638/schema/integration_with_realm/versions/1/data/?_fields=name&_format=json&_filters=email%20is%20in%20a%20list&_sort=email&_limit=10&_offset=0&_query=email%20is%20in%20a%20list&_timezone=Etc/UTC&_callback=callback&_type=json&_version=1&_userid=87eb0dfa-14be-4ef8-8845-2b1c241c9fa1&pid=e5f2bcac-ca46-4e6d-9cf1-049d45ee8edc

Step 1 – Create a new class in object oriented language (I am using Objective-C for this tutorial. For this tutorial we are going to call our class AccountIntegrator . Add fplowing properties in your class file:

Include #import <Realm/Realm.h> to your AccountIntegrator.h file. Create an instance of [MongoDB] realm before you make any requests to convert kit or mongo database for each account in convert kit database. Replace your account id here with your account id in Convert Kit application account section (in my case it will be 29a7e2c8cee6b03bb8db9b08d92d2638 . Add #define MYKEY @“MYKEY”; just before @implementation of AccountIntegrator class just like in below code picture. Just copy paste code into your AccountIntegrator.h file (if you get error please check Xcode project settings -> Build Settings -> Code Generation -> Objective-C++). Add #import <Realm/Realm.h> in your AccountIntegrator.m file (just like in step 1. Replace your account id here with your account id in Convert Kit application account section (in my case it will be 29a7e2c8cee6b03bb8db9b08d92d2638 ). Now add the fplowing code into your AccountIntegrator.m file after IMPLEMENTATION("AccountIntegrator", NSObject. . In order to make request to Convert Kit API (to fetch all accounts), we need to add request header fields like Authorization , Content-Type , Accept header fields etc., so we can make successful request to convert kit servers or APIs (without these parameters we will get an error like response status code – 400 . Bad Request . Add the fplowing code into your AccountIntegrator.m file. Run your project and see if you get success response from convert kit server or APIs then it means you did everything right until now. Now we need to add request body fields like user_id , email , groups , etc., so we can make successful request to convert kit servers or APIs (without these parameters we will get an error like response status code – 422 . Unprocessable Entity . Add fplowing code into your AccountIntegrator.m file. Run your project and see if you get success response from convert kit server or APIs then it means you did everything right until now. Now we need to create a new thread to run this class every 10 seconds so we can check every 10 seconds if any new email has been added into convert kit database from any other email services like aweber, mailchimp etc.. Add @autoreleasepop { just before @end of your AccountIntegrator class just like in below code picture. Add the fplowing method into your AccountIntegrator class file. Just copy paste code into your AccountIntegrator.m file (if you get error please check Xcode project settings -> Build Settings -> Code Generation -> Objective-C++). Add -[NSThread sleepForTimeInterval:seconds:] method into your +(void. do { method just like in below code picture. Again add -[NSThread sleepForTimeInterval:seconds:] method into your +(void. do { method just like in below code picture. Now add the fplowing code into your +(void. do { method just like in below code picture. Run your project and see if you get success response from convert kit server or APIs then it means you did everything right until now. Now add the fplowing code into your +(void. do { method just like in below code picture. Run your project again and see if you get success response from convert kit server or APIs then it means you did everything right until now. In order to fetch data from MongoDB database, we need to add connection parameters headers to our request headers like Authorization , Content-Type , Accept header fields etc., so we can make successful request to mongo database for each account in convert kit database (without these parameters we will get an error like response status code – 400 . Bad Request . Add the fplowing code into your AccountIntegrator class file. Add the fplowing code into your AccountIntegrator class file. Run your project and see if you get success response from convert kit server or APIs then it means you did everything right until now. Now we need to create a new thread to run this class every 10 seconds so we can check every 10 seconds if any new email has been added into convert kit database from any other email services like aweber, mailchimp etc.. Add @autoreleasepop { just before @end of your AccountIntegrator class just like in below code picture. Add the fplowing method into your AccountIntegrator class file. Just copy paste code

The process to integrate MongoDB Realm and ConvertKit may seem complicated and intimidating. This is why Appy Pie Connect has come up with a simple, affordable, and quick spution to help you automate your workflows. Click on the button below to begin.