Project

General

Profile

Enrollment » History » Revision 2

Revision 1 (Adrian Georgescu, 03/07/2011 09:28 PM) → Revision 2/11 (Adrian Georgescu, 03/07/2011 09:31 PM)

= Create SIP account = 

 To create a SIP2SIP account programmatically you can use the HTTP API available at this address: 

 https://blink.sipthor.net/enrollment.phtml?query https://blink.sipthor.net/enrollment.phtml 

 The following query parameters are mandatory: 

  * email 
  * password 
  * display_name 
  * username 

 Example: 

 https://blink.sipthor.net/enrollment.phtml?email=abcd@example.com&password=1234&dsiplay_name=Example&username=test456 

 Will create the sip address: 

 {{{ 
 sip:test456@sip2sip.info 
 }}} 

 The result of the operation including the SIP account credentials is returned in a json structure that you can parse using your program: 

 {{{ 
 {"success":true,"sip_address":"test456@sip2sip.info","email":"abcd@example.com","passport":{"crt":"-----BEGIN CERTIFICATE-----\nMIIDIjCCAgqgAwIBAgIBADANBgkqhkiG9w0BAQQFADCBlzEcMBoGA1UEAxMTQUcg\nUHJvamVjdHMgUm9vdCBDQTEWMBQGA1UECBMNTm9vcmQtSG9sbGFuZDELMAkGA1UE\nBhMCTkwxFDASBgNVBAoTC0FHIFByb2plY3RzMRQwEgYDVQQLEwtNYW5hZ2VkIERO\nUzEmMCQGCSqGSIb3DQEJARYXc3VwcG9ydEBhZy1wcm9qZWN0cy5jb20wHhcNMTEw\nMzA3MjAzMDIzWhcNMjEwMzA0MjAzMDIzWjCBlDELMAkGA1UEBhMCTkwxCzAJBgNV\nBAgTAk5IMRIwEAYDVQQHEwlBbXN0ZXJkYW0xFDASBgNVBAoTC0FHIFByb2plY3Rz\nMQ4wDAYDVQQLEwVCbGluazEdMBsGA1UEAxQUdGVzdDQ1NkBzaXAyc2lwLmluZm8x\nHzAdBgkqhkiG9w0BCQEWEGFiY2RAZXhhbXBsZS5jb20wgZ8wDQYJKoZIhvcNAQEB\nBQADgY0AMIGJAoGBALGaOeZ8cJjrupq7VUBfnY4zBFt4Nljoyo07XWLQotapUaVP\nBQyr1ndV9vWJu5njgyZie6JZNsEuSv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