Hey there I want to make a OFP Generater & viewer, suppse an pilot clicks on Dispatch it will be redirected to A worker OFP Generator window and it will take details from the Leg. & After generating OFP it will show the data to a page called /ofp. But how will I do this.? Like any steps of flow for this. And one more thing. In the OFP Generator link.
https://www.simbrief.com/ofp/ofp.loader.api.php?**apicode**=04b336c519a12c18bbffc7b277a87e20&outputpage=inva-cm.vercel.app%2Fofp-viewer.html×tamp=1768915738&orig=VIDP&dest=VOCI&type=A320&fltnum=AI505&airline=INVA&navlog=1&stepclimbs=1&tlr=1¬ams=1&maps=detail
What is “apicode” here? How will I get that.
I have sent your request to the Dev.
1 Like
Hi, generating the apicode requires an API key. If you haven’t already, please request one by contacting us.
Best regards,
1 Like
I have an API Key. And can you please give me the simbrief.apiv1.php & simbrief.apiv1.js example file & main file? And how will I get the apicode parameter?
And after successful generating the OFP, SBworker sends data to where? I made a dedicated page for viewer. Will it send to there? But how? Any specific code?
Hi, we have replied to you via email.
Best regards,
1 Like
A last question, the demo page can be typescript, react, vite?
We do not have demo pages in those languages, but you can probably translate the demo page yourself into any language I imagine.
Best regards,
1 Like
I can convert the api.php file to JS or TS if I needed?
Technically yes. But it is not recommended to perform the API key hashing in the front end, since it can expose your API key to your users.
This is why the demo files perform the hashing in the backend, such as with a PHP script.
If your API key is stolen and misused, we would likely have to disable it. So we recommend protecting it if possible.
Best regards,
1 Like