Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Don't fear the pen. When in doubt, draw a pretty picture." -- Baker's Third Law of Design.


devel / comp.lang.xharbour / How can I read this?

SubjectAuthor
* How can I read this?Marco Boschi
`* Re: How can I read this?Enrico Maria Giordano
 `- Re: How can I read this?Marco Boschi

1
How can I read this?

<6fd47f0f-a9f4-4e5f-9953-cd5c8773913en@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17340&group=comp.lang.xharbour#17340

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:622a:1821:b0:3e1:934d:ba1a with SMTP id t33-20020a05622a182100b003e1934dba1amr5245260qtc.3.1681217907691;
Tue, 11 Apr 2023 05:58:27 -0700 (PDT)
X-Received: by 2002:a05:6808:309:b0:383:bae2:3ac9 with SMTP id
i9-20020a056808030900b00383bae23ac9mr2656632oie.2.1681217907372; Tue, 11 Apr
2023 05:58:27 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Tue, 11 Apr 2023 05:58:27 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=185.55.90.130; posting-account=_oyAawkAAAAkDmcMkD9UQrwxJqiaol5l
NNTP-Posting-Host: 185.55.90.130
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6fd47f0f-a9f4-4e5f-9953-cd5c8773913en@googlegroups.com>
Subject: How can I read this?
From: info@marcoboschi.it (Marco Boschi)
Injection-Date: Tue, 11 Apr 2023 12:58:27 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Marco Boschi - Tue, 11 Apr 2023 12:58 UTC

This is a documentation of REST API for sending sms
When I have aResp containing the information that I need I assign:
nTotal := aResp[ "total" ]
nPage := aResp[ "pageNumber" ]

The problem is for
"smshistory": [
{
"order_id" ,
"create_time" ,
"schedule_time"
"message_type" ,
"message": ,
"sender" : "MySender",
"num_recipients" :
},


How can I extract information for every sms?

"order_id" , "create_time" , "schedule_time" , "message_type" , "message" , "sender" , "num_recipients"
In documentation I found this

{
"total": 1, "// The total number of results"
"pageNumber": 1, "// The returned page number"
"result": "OK", "// The status of the request"
"pageSize": 10, "// The page size"
"smshistory": [ "// The SMS history"
{
"order_id" : "XYZABCQWERTY", "// The order ID"
"create_time" : "yyyyMMddHHmmss", "// When the order was created"
"schedule_time" : "yyyyMMddHHmmss", "// When the sending is scheduled"
"message_type" : "N", "// The message type",
"message": "Text message",
"sender" : "MySender", "// The sender's alias"
"num_recipients" : 2 "// The number of recipients"
},
{
...
}
]
}

I can't figure out how to access the two dimensional hash
Many thanks

Re: How can I read this?

<u13ovm$2kmp7$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17341&group=comp.lang.xharbour#17341

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: e.m.giordano@emagsoftware.it (Enrico Maria Giordano)
Newsgroups: comp.lang.xharbour
Subject: Re: How can I read this?
Date: Tue, 11 Apr 2023 15:57:13 +0200
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <u13ovm$2kmp7$1@dont-email.me>
References: <6fd47f0f-a9f4-4e5f-9953-cd5c8773913en@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 11 Apr 2023 13:57:10 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="7d41414629ed37480edf36c5de97afb0";
logging-data="2775847"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19BjSU4aXUfftuQqPXRioJK"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.9.1
Cancel-Lock: sha1:7HvtZH5lRPSpHy4/Q2EDammN8lk=
In-Reply-To: <6fd47f0f-a9f4-4e5f-9953-cd5c8773913en@googlegroups.com>
 by: Enrico Maria Giordan - Tue, 11 Apr 2023 13:57 UTC

Il 11/04/2023 14:58, Marco Boschi ha scritto:

> I can't figure out how to access the two dimensional hash

Try this:

aResp[ "smshistory", 1, "order_id" ]

--
Enrico Maria Giordano

http://www.emagsoftware.it
http://www.emagsoftware.it/emgmusic
http://www.emagsoftware.it/spectrum
http://www.emagsoftware.it/tbosg

Re: How can I read this?

<ba944c6b-4172-4f23-9f00-0bd61bf49680n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17342&group=comp.lang.xharbour#17342

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:a05:620a:4610:b0:746:bd8a:37ff with SMTP id br16-20020a05620a461000b00746bd8a37ffmr3321159qkb.9.1681223333603;
Tue, 11 Apr 2023 07:28:53 -0700 (PDT)
X-Received: by 2002:aca:f14:0:b0:386:be95:91e9 with SMTP id
20-20020aca0f14000000b00386be9591e9mr3988461oip.1.1681223333350; Tue, 11 Apr
2023 07:28:53 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Tue, 11 Apr 2023 07:28:53 -0700 (PDT)
In-Reply-To: <u13ovm$2kmp7$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=185.55.90.130; posting-account=_oyAawkAAAAkDmcMkD9UQrwxJqiaol5l
NNTP-Posting-Host: 185.55.90.130
References: <6fd47f0f-a9f4-4e5f-9953-cd5c8773913en@googlegroups.com> <u13ovm$2kmp7$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ba944c6b-4172-4f23-9f00-0bd61bf49680n@googlegroups.com>
Subject: Re: How can I read this?
From: info@marcoboschi.it (Marco Boschi)
Injection-Date: Tue, 11 Apr 2023 14:28:53 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1192
 by: Marco Boschi - Tue, 11 Apr 2023 14:28 UTC

> aResp[ "smshistory", 1, "order_id" ]
VERY GOOD!
Many Thanks EMG

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor