Private Label and Cobranded VoIP Solutions
BrainCast internet & phone based message/memo recording & reminder organization system
Internet Phone Service and Broadband Phone Service by ViaTalk

Go Back   VoIP Forums, Internet Phone Service Forums, & Web Hosting Forums > ViaTalk - VoIP Phone Service Discussion > VT White

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-27-2008, 08:30 PM
douglas_gillett douglas_gillett is offline
Registered User
 
Join Date: Jun 2008
Posts: 2
API Support

I am signed up for origination and termination services with a username
and password, however I am unable to get the test provision API to
work with any of the API nodes I have created.

Here's the code I am using (copied from the forums):

-------8< snip-snip 8<-----------
<?php

//////////////////////////////////////////////////////
// Test of GetNumbers function of the VTWhite API
//////////////////////////////////////////////////////

$packet = "
<packet>
<auth>
<user>api_node_user</user>
<pass>api_node_pass</pass>
</auth>
<function>GetNumbers</function>
<data>
<npa>951</npa>
</data>
</packet>";

exec("curl -k -H \"Content-Type: application/x-www-form-urlencoded\" \
-d \"packet=$packet\" https://api.vtwhite.com/provisioning...ioning.api.php 2> /dev/null", $h);

for ($i = 0; $i < count($h); $i++) {
$res .= $h[$i] . "\n";
}

print $res;

?>
-------8< snip-snip 8<-----------

I have substituted "api_node_user" and "api_node_pass" for the real user and password.

The response returned is:

<packet>
<data>
<success>FALSE</success>
<error>Not Authorized</error>
<return></return>
</data>
</packet>

Here's the API Node info:

Edit
Name IP Address Username Password 911 Action
DouglasGillettWeb 69.65.24.226 xxxxxxxx HIDDEN Y


I can add numbers manually and would like to get it working programatically.

Thank you for any help you can provide.
Reply With Quote
  #2  
Old 07-08-2008, 09:20 PM
douglas_gillett douglas_gillett is offline
Registered User
 
Join Date: Jun 2008
Posts: 2
Reading the fine print helps...

With the help of technician, Ken Kobin, this issue was resolved. Bottom line: the line with <npa>951</npa> had to be changed to be "exactly" like the example in the documentation: <state>DC</state> then it all worked like a champ!

Well, almost - the root IP address of the web server I was using wasn't the same as the IP address of the domain-name of the web site, so I had to create an API Node using the root IP address and *THEN* it was all good!

I have since migrated all the code to another web server which has better performance, so I asked customer support for the root IP address of the new server and they were happy to give it to me. I created a new API Node with identical user and pass but with the new root IP address, and the migration was transparent.

So, 1) make sure the API node has the Root IP address of the server making the API call and 2) make sure the code is *exactly* like the sample in the documentation (with the exception of the "user" and "pass").

Cheers!
-Doug Gillett
Panefree
Reply With Quote
  #3  
Old 10-31-2008, 07:46 AM
kevinschelin kevinschelin is offline
Registered User
 
Join Date: Oct 2008
Posts: 6
API Support

I am signed up for origination and termination services with a username
and password, however I am unable to get the test provision API to
work with any of the API nodes I have created.

------------------------------------------------------------------

Translations Self Certification Mortgage Quotes
Reply With Quote
  #4  
Old 06-15-2009, 12:27 AM
Etta Sapphire Etta Sapphire is offline
Banned
 
Join Date: May 2009
Posts: 41
Hi,

The user may first configure a NetBeans platform for use in module development. For this workflow, a platform could be an installation of (some supported version of) the NetBeans IDE, or any application based on the NetBeans platform, e.g. a suitably new version of Java Studio Creator. There may be several platforms configured in the IDE at once; the platform selected for a given module (or suite of modules) is referred to as the target platform.
Reply With Quote
  #5  
Old 12-27-2009, 06:43 PM
Detsacrotte Detsacrotte is offline
Registered User
 
Join Date: Oct 2009
Location: United States
Posts: 4
Send a message via ICQ to Detsacrotte
API Support

I need to file request to access JFS service in Java code,for example,HTTP GET,then I need to pass the jazz Form authentication,Are there any JFS API to support this?
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump