Paste #120790

   
pasted on 25.04.2019 15:53
  • Edit to this paste
  • Print
  • Raw
  • The following pastes replied to this paste:  # 164426 # 222426 # 240266
  • Show paste tree
  • Compare with paste
    #  
  • Toggle line numbers
  • Syntax highlighting  
Text paste
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
13     () as ResultSms = SendSMS(Token) {
 12       param
 11         message: "Hi from SPL!)";
 10         channelName: "SMS";
  9         contact: "87471377154";
  8         resource: $sendUrl;
  7         //access_token: Token.access_token;
  6         //token_type: Token.token_type;
  5     }
  4 }
  3 
  2 composite SendSMS(input IN) {
  1   param
  0     expression<rstring>     $message;
  1     expression<rstring>     $channelName;
  2     expression<rstring>     $contact;
  3     expression<rstring>     $resource;
  4     //expression<rstring> $access_token;
  5     //expression<rstring> $token_type;
  6   type
  7     SMS = tuple<rstring Message, rstring ChannelName, rstring Contact, rstring resource>;
  8   graph
  9     (stream<HTTPResponse> SmsResponse) = HTTPPost(sendSMS as InputStreamName0)
 10     {
 11       param
 12         url : $resource;
            // CDISP0302E ERROR: A value name is expected, but the IN identifier is not a value in this scope. 
 13         extraHeaders : "Authorization: " + IN.token_type + " " + IN.access_token;
 14 
 15     }
Add Comment
Author