In-App Purchases
v 11.0 v 12.0 Third Party 362
Download for v 11.0 Deploy on Odoo.sh
Lines of code 102
Technical Name sms_ovh
LicenseAGPL-3
Websitehttps://github.com/fmdl
Also available in version v 12.0 v 13.0
You bought this module and need support? Click here!
Lines of code 102
Technical Name sms_ovh
LicenseAGPL-3
Websitehttps://github.com/fmdl
Also available in version v 12.0 v 13.0

SMS OVH Enpoint

This module provide OVH SMS Endpoint.

Usage

  • Buy SMS package on https://www.ovh.com/

  • Create your application on this page : https://eu.api.ovh.com/createApp/

  • Install ovh module for python with this command : pip install ovh

  • Excecute this python script to get your consumer key and set the access right settings:

    # -*- encoding: utf-8 -*-
    
    import ovh
    
    # Put your application key
    application_key='your_application_key'
    
    # Put your application secret
    application_secret='your_application_secret'
    
    # Put your endpoint default = 'ovh-eu'
    endpoint = 'ovh-eu'
    
    # create a client using configuration
    client = ovh.Client(endpoint, application_key=application_key, application_secret=application_secret, consumer_key='' )
    
    # Request RO /me, RW /sms API access
    ck = client.new_consumer_key_request()
    ck.add_recursive_rules(ovh.API_READ_ONLY, "/me")
    ck.add_recursive_rules(ovh.API_READ_WRITE, "/sms")
    
    # Request token
    validation = ck.request()
    
    print "Please visit %s to authenticate, and come back here." % validation['validationUrl']
    raw_input("and press Enter to continue...")
    
    # Print your consumer Key
    print "Welcome", client.get('/me')['firstname']
    print "Btw, your 'consumerKey' is '%s'" % validation['consumerKey']
    
    raw_input("and press Enter to close...")
    
  • Install this module

  • Go to Settings > Technical > Iap Account configuration and select OVH.

  • Only use international phone number ex : +33123456789 (Install phone_validation module)

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
Works Great !
by
Florent de Labarre
on 11/25/17, 8:46 AM Author

There are no comments yet!