Subversion Repositories VORC

Rev

Rev 177 | Rev 208 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 177 Rev 180
Line 39... Line 39...
39
 
39
 
40
  #print Dumper $response;
40
  #print Dumper $response;
41
  my $activationCode = $response->{activationCode};
41
  my $activationCode = $response->{activationCode};
Line 42... Line 42...
42
  print $activationCode."...";
42
  print $activationCode."...";
43
  
43
  
44
  my $add_response = `/bin/curl --no-progress-meter -i --location 'https://core.wrstbnd.io/rest/core/v1/assign' --header 'Authorization: 601037851507c624' --form 'accountid="$accountid"' --form 'ticketactcode="$activationCode"' | /bin/grep HTTP | /bin/cut -d' ' -f2`;
44
  my $add_response = `/bin/curl --location 'https://core.wrstbnd.io/rest/core/v1/assign' --header 'Authorization: 601037851507c624' --form accountid=$accountid --form ticketactcode=$activationCode --output /dev/null --silent --write-out '%{http_code}\n'`;
45
  print $add_response;
45
  print $add_response;