A Developers Blog

This blog has moved to GitHub, and you should be redirected shortly...

Friday, December 16, 2016

Unity Live Training Session On December 19th (Making A Flappy Bird Style Game)

Unity will be holding another live training session on December 19th, at 3:00 - 4:00 PM EST. For this live session they will be going over how to make a simple 2D flappy bird style game. During this session, they will be going over the flapping mechanic, spawning random obstacles, and setting up a simple game manager.

This session will be hosted by Matthew-Schell. If you are interested in learning more or in signing up, you can do so here: https://unity3d.com/learn/live-training/session/making-flappy-bird-style-game

Labels: , ,

Thursday, December 15, 2016

Ludum Dare 37 Game Entry

This past weekend, I got the chance to participate in the Ludum Dare game jam. If you are not familiar with Ludum Dare it is a game jam that has been around for over 12 years.

This time around the theme was "One Room", so my teammates and I came up with the idea that you would play as a room in a house, and you would need to fight the rest of rooms to be the best room in the house. The game was going to be a 2D "fighting" game, but with the combat being very basic.

The game itself was made in Unity, all the audio was original, and most of the art was original this time. If you are interested in seeing our finished project, you can see it here: http://scottwestover.github.io/games/RoomWars/

You can also view the game on Ludum Dare here: http://ludumdare.com/compo/ludum-dare-37/?action=preview&uid=113176



I hope you enjoyed this post. If you have any questions or comments, please feel free to post them below.

Labels: , ,

Saturday, November 12, 2016

Unity Live Training Session On November 14th (Creating A Quiz Game: Session 1)

Unity will be holding another live training session on November 14th, at 3:00 - 4:00 PM EST. For this live session they will be going over how to make a multiple choice quiz game. During this session, they will be going over the core game loop, the code architecture best practices, and how to make the code easy to maintain and extend.

This session will be hosted by Matthew-Schell. If you are interested in learning more or in signing up, you can do so here: https://unity3d.com/learn/live-training/session/creating-quiz-game-session-1

Labels: , ,

Saturday, October 29, 2016

How To Connect To The Engagement History API Through Postman

I have gotten a lot of request from people on how to connect to the APIs that are available from LivePerson using Postman, so I decided to share how to do this here.

In order to follow along with this tutorial, you will need the API keys that are available for Engagement History API, and you will need access to the Postman App. To get these keys, you can log into the LiveEngage console, and grab them from them from the API tab under data sources, which is on the campaigns tab. If you are not sure on how to setup your keys, you can learn how to do so here.

If you do not already have Postman installed, you can learn more about it and install it from here: https://www.getpostman.com/

If you would just like to import a template of the query into Postman, you can do so here: https://www.getpostman.com/collections/6bd9d4cc64bbee6843f1

Let's get started.

1) The first thing you need to do is find out what the base URI is for your account. This will be needed to make any API calls. In Postman, make a new GET request with the following URL: https://api.liveperson.net/api/account/{Your Account Number}/service/engHistDomain/baseURI.json?version=1.0

You will need to update the '{Your Account Number}' with just your account number. For example, your updated link should look similar to this: https://api.liveperson.net/api/account/56072331/service/engHistDomain/baseURI.json?version=1.0

2) Now, click on the Send button and you should get a 200 response with your base URI.



3) In a new tab in Postman, update the request to be a POST request, and add the following URL to the request: https://{YOUR BASE URI}/interaction_history/api/account/{YOUR ACCOUNT NUMBER}/interactions/search?offset=0&limit=10

You will need to update the '{YOUR BASE URI}' and the 'YOUR ACCOUNT NUMBER}' parts of the URL with your LiveEngage account number, and with the base URI that you received in the steps before. For example, your updated link should look similar to this: https://va-a.enghist.liveperson.net/interaction_history/api/account/56072331/interactions/search?offset=0&limit=10


4) For the API call to be successful, you will need to add the following to the request: a body, a content type header, and an OAuth 1 header. To add the Body, click on Body, and choose "raw" as the type. Add the following parameters to the body: {"start":{"from":1477052344000,"to":1477657144000}}


The data that you just added is the timeframe that you would like to query the API for. The time is entered as an epoch timestamp in milliseconds. To quickly get the date that you would like to use in an epoch timestamp format, you can use this website here: http://www.epochconverter.com/. Note: You may need to update the timeframe for the query to work with your account.

5) Next, lets add the Content-Type header to the request. Click on "Headers" tab, and in the "key" field type in: Content-Type, and in the "value" field type in: application/json.


6) Lastly, you just need to add your OAuth 1 header to the API call. Click on "Authorization" tab, and in the type drop down choose "OAuth 1.0". In the fields that appear, you will need to add your API keys from LiveEngage:
  • Consumer Key - Your App Key
  • Consumer Secret - Your Secret
  • Token - Your Access Token
  • Token Secret - You Access Token Secret
Also, on the right hand side, make sure the check for "Add params to header" is checked.


Once you fill in your keys, click on the "Update Request" button to update your request.

Now, click on the "Send" button, and you should get a 200 response back with your chat transcripts.


You can import a template for this query directly into Postman by clicking this link here: https://www.getpostman.com/collections/6bd9d4cc64bbee6843f1


Summary: This tutorial showed you how to use Postman to query the Engagement History API that is available from LivePerson.

I hope you enjoyed this tutorial. If you have any questions or comments, please feel free to post them below.

Labels: , , , ,