Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Does anyone use Interstateapp?

Featured Replies

Hi all,

 

Hope this is in the correct place,

 

Does anyone here use this? If so do you know how to use the Api or intergrate it into own website?

 

http://interstateapp.com/

 

Basically I would like to have a holding page using this api to show the status of the website build?

 

Thanks :)

 

This Linky is the developer area.

I've never even heard of it before. I looked at their website and they have a PHP Library, which looked pretty easy to use.

It looks really easy, there is an example in the zip file. Looks like you'd just call the 'get' method on a specific road and it returns an array, and it looks like its got a completion percentage in the array. $road['status']['status']

  • Author

It looks really easy, there is an example in the zip file. Looks like you'd just call the 'get' method on a specific road and it returns an array, and it looks like its got a completion percentage in the array. $road['status']['status']

 

Thanks I will take a look and post if i get stuck on here. I didnt notice that. I just got scared at the thought of using an api when im still learning php haha :)

Thanks I will take a look and post if i get stuck on here. I didnt notice that. I just got scared at the thought of using an api when im still learning php haha :)

I'd suggest just learning php first jumping around from basic php to classes to apis will never help u become fluent in the language itself.

meh dont be put out by jargon.... you use a API every time you write PHP after all PHP is just a big Application Programming Interface (API) into a suite of C functions, the sample code they supply will most likely do all the work for you.

  • Author

Im guessing that even thoe im learning it shouldnt be hard to do as i would just need to refference the specific road and return the array?

 

The only thing i dont quite understand is the following:

 

Authentication

Interstate currently only offers a single form of authentication through the HTTP Basic authentication process.

 

Every request to the Interstate API requires the Authorization HTTP header to be sent. We require you to use your public API key as the username portion of the header and your private key for the password.

 

Example request with cURL curl -u 4c16c8358ead0e1c0d3894938838838HSHSzua:a8ea39ffe6b5e19445c8dbaa5421e15e http://interstateapp.com/api/v1/roadmap/listAll

 

Your unique API keys can be found by logging in to your Interstate account, clicking on a roadmap and then clicking the "Settings" link towards the right of the page. This page will also give you the ID of the roadmap you are currently browsing for use with roadmap based API methods

  • Author

so, do you have an account? would love an invite looks quite cool

 

I do have an account. There isnt a system to invite people as of yet. I would recommend signing up for an invite, they do them in batches at a time :)

  • Author

It just means they require your API key to be passed into the URL and the that the API key must form part of the url you request using CURL. They have an example of a request - really easy to use:

 

require 'Interstate.php';
$interstate = new Interstate( 'PUBLIC_KEY', 'PRIVATE_KEY' );

try {

$roadmap	= $interstate->roadmap;
$road		= $interstate->road	;	

$roadmap->get( '4c2d3b5f8ead0ec070010000' );
$road->get( '4c8ecff4482c25b777010000' );


} catch( Interstate_Error $error ) {

$e->getMessage();
$e->getCode();

}

 

There's not a lot to go wrong really as they have written the classes for you - you're just using the well documented (see their site) methods to get info from an url.

 

To get what you want (the project status) it looks like you'll need to use the method described at http://interstateapp...pers/method/0/2 (the roadmap/roads), as this returns some JSON that includes the status and code - which is what you want.

 

If you want to see what the API is actually doing (making a CURL request basically) have a look at /InterState/Object.php and the _request method.

 

Thanks for the help, I will try and let you know if i get stuck. Thank you again. Really apreciate the help :)

Hi, my name's Simon, I'm the founder/developer of BakedCode (Interstateapp). If you need any help feel free to email me at simon@interstateapp.com and I'd be more than happy to give you some help anytime you need it.

 

Also, if anyone wants an invite to the site just drop me an email :).

 

Oh and happy new year everyone! :)

Edited by Simon Fletcher

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.