[Flow] Where to store API-Key

Carsten Bleicker carsten at bleicker.de
Sun Mar 15 16:29:39 CET 2015


Just put it in Settings

Your:
	Package:
		Api:
			Key: 'Foo'

in your class inject it by @Flow\InjectConfiguration(package="Your.Package", path="Api.Key")
think this should work with the ne configuration annotation.


Mit sonnigem Gruß
Carsten Bleicker

----------------------

Carsten Bleicker
Wülfingstraße 1
42477 Radevormwald

E-Mail:	carsten at bleicker.de
Web:	www.bleicker.de
Twitter:	@carstenbleicker
Jabber:	cbleicker at jabber.ccc.de
Telefon:	+49 (0)171-2690845

> Am 15.03.2015 um 16:20 schrieb David Sporer <david.sporer at gmail.com>:
> 
> Hi,
> 
> I’m currently working on a package I thought might be worth sharing (Integration of the Newsletter2Go API).
> But for the API-Calls to their API I have to provide an API Key.
> If I create a plain old PHP class I’d pass the API-Key to the constructor so everyone can save their own API key in their own projects and pass them to the class.
> But how would I do this in Flow?
> 
> Regards,
> David
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow



More information about the Flow mailing list