Open ptkn opened 10 years ago
If this is for functionality in the FrontlineSMS app, it's possible to do using the API. You can see the docs here: https://developers.crowdmap.com/
The biggest challenge for FrontlineSMS is going to be generating API tokens but that shouldn't be too hard. There is some example code (in PHP) that can be applied to FrontlineSMS. After getting the token generation down, I think the best plan is to POST messages to the posts resource (POST https://api.crowdmap.com/v1/posts/) with the SMS message. You could have additional settings in FrontlineSMS to have the post inserted as unmoderated or moderated, etc.
The only downside to this method is posts sent in with numbers verified in Crowdmap will not be associated with specific accounts. If we want to do that, we'll have to build out some additional functionality in the API, specific to third party SMS gateways.
Keep in mind some maps on Crowdmap are still running Ushahidi V2 (Crowdmap Classic) and can continue to work as usual, the newer maps will need to use the new API, documented above.
FrontlineSMS integration was supported as a form of data input in the previous version(s) of Crowdmap; the new version no longer supports it. The option is still there in FrontlineSMS and can be amended/updated if needed.