Validic
  • Solutions
    • Inform: Data Connectivity Platform
    • Impact: Remote Monitoring Platform
    • Logistics & Support
    • Mobile Solutions & HealthBridge
  • Industries
    • Hospitals & Health Systems
    • Healthcare IT Companies
    • Wellness Companies
    • Pharmaceutical Companies & CROs
    • Payers & Insurers
    • Device Manufacturers & App Developers
  • Ecosystem
  • Resources
    • Blog
    • Learning Center
  • Contact
Select Page

Testing Your Integration

Apr 3, 2015

Testing

When integrating with Validic, we ask that you continually test your integration, including both the authentication process and the flow of new data. Below we walk through how to test the Authentication and Authorization process as well as the correct flow of data from your system to Validic.

Testing Authentication and Authorization

Before building your integration you should be able to manually test the authentication and authorization process.

    1. With the “consumer” testing organization_id and user access_token you should begin by navigating to a Validic Marketplace. These will be in the form of a link provided to you once registered with Validic Connect and are given so you can emulate the full end to end user experience from a “consumer” marketplace, to your application to authenticate and authorize, and back. Below is an example link to a Validic “Consumer” marketplace:
Example
GET https://app.validic.com/{TEST_ORGANIZATION_ID}/{TEST_USER_ACCESS_TOKEN}
  1. Find your application among the list of available apps and click the “Connect” button.  Validic should redirect you to your Authentication URL (if you have not already given your Authentication URL to Validic please do so).
  2. Once redirected to your Authentication URL you should see both the signature and sync_url passed in the url as parameters. At this point your application should allow the user to login to your system and then, upon successful login, authenticate with Validic using the uid and signature. However, to test manually you should simply be able to send a cURL request to the sync url and supply a dummy uid and the signature (see Authenticating Users Who Want to Share Data above for the specific POST).
  3. This request should return a 201 that includes user credentials, the application, and the redirect_uri.
  4. You should then manually navigate to this redirect_uri which is a Validic hosted page where you confirm authorization. Once there, click “Authorize” and you should then be returned to the original Validic Marketplace with your application now highlighted as being connected.
  5. You can finally check if a Sync Notification was sent to your Sync Notification url (see Receiving Sync Notifications above).

These steps are also shown through screenshots in the “How it Works” section above. As you build out your application to handle the authentication programmatically, you should continue to walk through this same user experience to ensure everything is working properly.

Testing Correct Flow of Data

Once you receive a Sync Notification you can manually test pushing data to Validic.

  1. Using your organization access_token, organization_id, and the user_id returned in the Sync Notification, you should be able to manually POST a record to Validic. See Submitting User Data above for an example of how to push a single Routine record to Validic.
  2. Assuming your POST was formatted correctly and with the correct credentials, you should see a 201 response with the newly created record in Validic.
  3. You should then be able to see the data in both your newly created user and also the test user who initiated the authorization. To verify this, you can use the following two GET calls below:
    Example
    GET https://api.validic.com/v1/organizations/{YOUR_ORGANIZATION_ID}/users/{VALIDIC_USER_ID}/routine.json?access_token={YOUR_ORGANIZATION_ACCESS_TOKEN}
    Example
    GET https://api.validic.com/v1/organizations/{TEST_ORGANIZATION_ID}/users/{TEST_USER_ID}/routine.json?access_token={TEST_ORGANIZATION_ACCESS_TOKEN}

For a full list of GET requests by object type see the Objects section of our Documentation.

Manually pushing data to Validic and checking to ensure it correctly shows up will make testing your application’s behavior much easier to understand. As you begin to incorporate this functionality into your application, you should be continually testing by recording sample data in your application and check if it shows up on the test user’s activity data.

Note: If you would like to test with additional “consumer” users rather than repeatedly connected and disconnecting the same “consumer” user, you must provision them with the test organizational credentials:

POST https://api.validic.com/v1/organizations/{TEST_ORGANIZATION_ID}/users.json
-H 'Content-Type: application/json'
{
  "user": {
    "uid": "{UID}"
  },
  "access_token": "{TEST_ORGANIZATION_ACCESS_TOKEN}"
}

Note: The UID represents what would be a unique identifier in the 3rd party’s system. Please see the provisioning section of the main docs for more details.

Finalizing Your Integration

Once you have tested your integration from end to end with the testing credentials Validic provided (the marketplace URL you were given along with you organization ID and authentication token) and feel comfortable that it works please submit the following to product-support@validic.com:

  • Sync URL:  This is the url that will link users to your authentication page after they click on your app in the “consumer” marketplace.  It should look something like this:
https://yourdomain.com/your_authentication_url?signature={SIGNATURE}&sync_url={VALIDIC_SYNC_PATH}

 

  • Notification URL:  This is the URL that will provide you with notifications when users sync or disconnect.  It should look something like this:
https://yourdomain.com/validic_notifications

 

  • Image for Marketplace Application: This needs to be a 200 x 200 png file of your logo that we will add to your marketplace app. 

View More >

Recent Posts

  • Why a digital health leader acquired a warehouse
  • Meet Gabe Maeck, LCSW, Senior Client Success Executive
  • Converting Patient Insight into Action: Exploring New Connections in Patient Data
  • Remote Patient Monitoring Has Failed — Now What?
  • Reducing Long Wait Times for Provider Care

Archives

  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • October 2021
  • July 2021
  • June 2021
  • April 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • March 2017
  • February 2017
  • January 2017
  • June 2016
  • January 2016
  • September 2015
  • August 2015
  • July 2015

Categories

News
Events
Awards

About

  • Blog
  • Company
  • How It Works
  • Careers

Developers

  • Inform Platform Documentation
  • Legacy Platform Documentation
  • Connect API Documentation
  • Mobile Documentation

Legal

  • Data Security Policy
  • Service Level Agreement
  • Support Policy
  • Privacy Policy
  • Terms and Conditions

Contact Us

  • Request to Become a Client
Validic

Validic Inc. is a digital health and personalized care company devoted to our mission of improving the quality of human life by making personal data actionable. With the world’s largest health IoT platform and EHR-embedded remote care application, we help healthcare organizations give every person tailored interventions and personalized care, improving healthcare efficiency and delivery, and empowering people to play an active role in their health and well-being.

Validic Twitter Validic LinkedIn

hello@validic.com
1-800-495-7934

701 W Main St, Suite 620
Durham, NC 27701

This website uses cookies to improve your user experience. By using our website, you consent to all cookies in accordance with our Privacy Policy.AcceptPrivacy policy