Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

sendRequest

URL/api/v1/api.php?target=peering&action=sendRequest
Description Send a peering request (email) to a prospective peer. This will be deprecated in the next version for a simpler call, strongly suggest against using.
Returns

Examples: 
SUCCESSFUL:

ERROR:

{"success":1,"message":"Request sent","data":{"id":"922","public_id":"1","asn":"10933","name":"ATX Communications, Inc.","qualified":true,"is_peer":0,"request_status":"sent","info_prefixes":null,"public_ips":[],"contacts":[],"log_data":[{"message":"Request sent to ","time":"2014-05-27 16:59:01","request_id":"181","session_id":null,"public_id":"1"},{"message":"Request sent to ","time":"2014-05-27 16:49:30","request_id":"171","session_id":null,"public_id":"1"}]}}

ERROR: {"success":0,"message":"Internal error"}

Required Parameters
Name
Type
Example
Description
public_idINTEGER  
peer_participant_idINTEGER  
source_participant_idINTEGER  
peer_nameSTRING  
peer_asnINTEGER  
email_fromSTRING262 
email_toSTRING 1 
subjectSTRING  
bodySTRING  
typeENUMhtmlenum('text','html')
statusENUMsentenum('sent','accepted','rejected')
Optional Parameters

None

Example URL

https://ops.6connect.com/peering-demo/api/v1/api.php?target=peering&action=sendRequest&peer_participant_id=1909&peer_asn=28929&peer_name=ASDASD+srl&source_participant_id=2335&source_asn=8038 &public_id=1&type=text&email_from=ops%406connect.com&email_to=operations%40as28929.net&cc=&bcc=&subject=Peering+request+from+6connect%2C+Inc. &body=%0D%0APeering%2C%0D%0A%0D%0A6connect%2C+Inc.%2C+8038%2C+would+like+to+peer+with+ASDASD+srl+at+our+common+locations.%3A%0D%0APeeringDB%3A+http%3A%2F%2Fas8038.peeringdb.com%2F%0D%0A

Required Parameters
Name
Type
Example
Description
participant_idINTEGER262 
public_idINTEGER 1 
Optional Parameters

None

Example URL 

sendEmail

URL/api/v1/api.php?target=peering&action=sendEmail
Description Send a peering request (email) to a prospective peer. This will be deprecated in the next version for a simpler call, strongly suggest against using.
Returns

Examples: 
SUCCESSFUL:

ERROR:

Required Parameters
Name
Type
Example
Description
participant_idINTEGER262 
public_idINTEGER 1 
Optional Parameters

None

Example URL 

...