Add `environment` option to Contentful connection
This adds a new option to contentful.createClient() that allows for different environments to be specified. More info on environments here.
The default value is master, which is default in every Contentful space. Since environments can be named anything it's up to the user to specify the ID of any other environment.
Next steps:
- Add tests
Looking great so far! Ping me when tests are ready 😀
@jescalan I think in order to add tests for the staging environment one will need to be created in Contentful. Is that something you can handle, or give access to?
Unfortunately I can't actually, this package uses contentful's example space which is under their control. I pulled this from some docs and and contentful's own open source libraries. I might try poking around there a bit, or reaching out to contentful?
Good to know. I'll do some research
@jescalan is this project still maintained? I noticed spike isn't, but if there's still value in it I'll continue to look into setting up a different example space for tests
I am not maintaining it personally, but it should still work, and you're welcome to contribute if you'd like!