Journey

API

A comprehensive reference guide to the complete Journey API. Just deep it in to this document to learn how can you use it.

Getting Started

Quickstart

<script type="text/javascript" src="//cdn.withcopper.com/1/copper.js#application_id=[application_id]"></script>

Open with Copper Buttons can be customized with these Advanced Options. For more flexibility, for example using a button or link of your own, see Copper.login() and Advanced Options

<script type="text/javascript">
  Copper.events.on('copper.login', function(err, response) {
      console.log('copper.login:', err, response);
      alert('Hello ' + response.user.name.first_name);
  });
  Copper.events.on('copper.logout', function() {
      console.log('copper.logout -> user logged out');
  });
</script>

Record Definitions

id – a unique, application-specific User ID. Copper always returns a persistent, application-unique User ID with a successful authentication. Copper will always return the same User ID for the same Application ID so that you can identify the same user across different sessions or devices. You do not need to specify this scope as this value is always returned. Copper will never return the same User ID for a different user or the same user on a different application.

Test in application

 

Value Type Notes
id
String Optional
id_short
String Optional

 

This is a numeric step list

  1. Register your app

    Este es un titulo secundario

    <script type="text/javascript" src="//cdn.withcopper.com/1/copper.js#application_id=[application_id]"></script>
  2. Register your app

    Este es un titulo secundario

    <script type="text/javascript" src="//cdn.withcopper.com/1/copper.js#application_id=[application_id]"></script>

     

Authentication

login

Initiate a login request, or ask for additional information from a user.

Copper.logout(function(response) {
  // User is now logged out of your application
});

Test in application

Learn More

Request a demo to learn more about Journey.

REQUEST DEMO

Need a Custom Solution?

Request a quote for a customization solution.

REQUEST QUOTE