[GH-ISSUE #235] Enable configuration of SMSSync through scanning of a QR code #169

Closed
opened 2026-02-28 01:23:31 +03:00 by kerem · 6 comments
Owner

Originally created by @arthurbuliva on GitHub (Jan 22, 2015).
Original GitHub issue: https://github.com/ushahidi/SMSSync/issues/235

Originally assigned to: @eyedol on GitHub.

As the title says, I think this will make it easy for people to configure SMSSync. Am thinking that this may be particularly useful for the Drupal module currently under test so that different users can get configuration details to either manually set up or Drupal generates a QR code which SMSSync will understand

Originally created by @arthurbuliva on GitHub (Jan 22, 2015). Original GitHub issue: https://github.com/ushahidi/SMSSync/issues/235 Originally assigned to: @eyedol on GitHub. As the title says, I think this will make it easy for people to configure SMSSync. Am thinking that this may be particularly useful for the Drupal module currently under test so that different users can get configuration details to either manually set up or Drupal generates a QR code which SMSSync will understand
kerem 2026-02-28 01:23:31 +03:00
Author
Owner

@eyedol commented on GitHub (Apr 13, 2015):

Add a camera icon after the + icon on the actionbar. When the camera icon is tapped, launch the camera to scan the QR code. After a successful scan of the QR code by SMSsync, it should populate the Sync URL list by deserializing the sample JSON string below from the QR code.

{
    "sync_urls": [
        {
            "title": "Sync URL tilte",
            "secret_key": "123456",
            "keywords": [
                "word",
                "message",
                "title"
            ],
            "url": "http: //www.syncurl.com",
            "syncscheme": {
               "method":"POST",
               "dataFormat":"URLEncoded",
               "kFrom":"from",
               "kSentTimestamp":"sent_timestamp",
               "kSentTo":"sent_to",
               "kMessageID":"message_id",
               "kSecret":"secret",
               "kMessage":"message",
               "kDeviceID":"device_id"
            },
            "status":"enabled"
        },
        {
            "title": "Online SMS poll",
            "secret_key": "123456",
            "keywords": [],
            "url": "https: //www.online-polls.com/index.php",
            "syncscheme": {
               "method":"PUT",
               "dataFormat":"JSON",
               "kFrom":"from",
               "kSentTimestamp": "sent_timestamp",
               "kSentTo":"sent_to",
               "kMessageID":"message_id",
               "kSecret":"secret",
               "kMessage":"message",
               "kDeviceID":"device_id"
            },
            "status": "disabled"
        }
    ]
}

The scyncscheme's method values should be POST and PUT only. That of dataFormat should be URLEncoded, JSON, XML, and YAML

Update the developer section of the website to reflect this.

Updated Changed enabled : true field to status : false

<!-- gh-comment-id:92260067 --> @eyedol commented on GitHub (Apr 13, 2015): Add a camera icon after the `+` icon on the actionbar. When the camera icon is tapped, launch the camera to scan the QR code. After a successful scan of the QR code by SMSsync, it should populate the Sync URL list by deserializing the sample JSON string below from the QR code. ``` json { "sync_urls": [ { "title": "Sync URL tilte", "secret_key": "123456", "keywords": [ "word", "message", "title" ], "url": "http: //www.syncurl.com", "syncscheme": { "method":"POST", "dataFormat":"URLEncoded", "kFrom":"from", "kSentTimestamp":"sent_timestamp", "kSentTo":"sent_to", "kMessageID":"message_id", "kSecret":"secret", "kMessage":"message", "kDeviceID":"device_id" }, "status":"enabled" }, { "title": "Online SMS poll", "secret_key": "123456", "keywords": [], "url": "https: //www.online-polls.com/index.php", "syncscheme": { "method":"PUT", "dataFormat":"JSON", "kFrom":"from", "kSentTimestamp": "sent_timestamp", "kSentTo":"sent_to", "kMessageID":"message_id", "kSecret":"secret", "kMessage":"message", "kDeviceID":"device_id" }, "status": "disabled" } ] } ``` The scyncscheme's method values should be `POST` and `PUT` only. That of `dataFormat` should be `URLEncoded`, `JSON`, `XML`, and `YAML` Update the developer section of the website to reflect this. **Updated** Changed `enabled` : `true` field to `status` : `false`
Author
Owner

@arthurbuliva commented on GitHub (Apr 20, 2015):

The Drupal 7 SMSSync module is waiting for you on this. It will give you a good means of testing whether the QR code scan actually works. github.com/arthurbuliva/smssync@65aacd7b16

<!-- gh-comment-id:94450263 --> @arthurbuliva commented on GitHub (Apr 20, 2015): The Drupal 7 SMSSync module is waiting for you on this. It will give you a good means of testing whether the QR code scan actually works. https://github.com/arthurbuliva/smssync/commit/65aacd7b16a6bb47860e0ed195fdf31b797583b5
Author
Owner

@eyedol commented on GitHub (Apr 20, 2015):

@arthurbuliva mind attaching a sample QR code that has the sample JSON string above?

<!-- gh-comment-id:94451277 --> @eyedol commented on GitHub (Apr 20, 2015): @arthurbuliva mind attaching a sample QR code that has the sample JSON string above?
Author
Owner

@arthurbuliva commented on GitHub (Apr 21, 2015):

snapshot9

<!-- gh-comment-id:94775333 --> @arthurbuliva commented on GitHub (Apr 21, 2015): ![snapshot9](https://cloud.githubusercontent.com/assets/302508/7252126/a12d58f2-e83a-11e4-95fc-b05f1ba07e14.png)
Author
Owner

@arthurbuliva commented on GitHub (Apr 21, 2015):

Question, why do we need the "syncscheme" section? Normally the users don't configure any of those parameters in those sections, do they? The only thing that they configure is the device_id, which I have included in the QR code.

<!-- gh-comment-id:94775833 --> @arthurbuliva commented on GitHub (Apr 21, 2015): Question, why do we need the "syncscheme" section? Normally the users don't configure any of those parameters in those sections, do they? The only thing that they configure is the device_id, which I have included in the QR code.
Author
Owner

@eyedol commented on GitHub (Jun 19, 2015):

@arthurbuliva the SyncScheme is a configuration option. There is a default one that is always set when you add a Sync URL. I thought it makes sense to provide that as well. Yes, this can be an optional field.

<!-- gh-comment-id:113415847 --> @eyedol commented on GitHub (Jun 19, 2015): @arthurbuliva the SyncScheme is a configuration option. There is a default one that is always set when you add a Sync URL. I thought it makes sense to provide that as well. Yes, this can be an optional field.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SMSSync#169
No description provided.