cConsumerConsumer key from protected configuration.
AdvPL GuideFWoAuth1Fluig():New(cConsumer,cSecret,cHost,[cCallback])Configures a documented OAuth-client stage.
Specializes FWoAuthClient for Fluig OAuth 1.0 services. GetUsers has a documented 250-record limit. Constructor syntax takes host text while its parameter table mentions oURL; the official example guides this subset without generalizing the inconsistency. Consumer key/secret and token/secret token are distinct pairs. The callback receives protected configuration without persistence, user queries or posted comments. (Sources: refs. 1–2.)
FWoAuth1Fluig():New(cConsumer,cSecret,cHost,[cCallback])cConsumerConsumer key from protected configuration.
cSecretConsumer secret; never log it.
cHostFluig host; page-table inconsistency explained in overview.
cCallbackProvider-registered callback when applicable.
FWoAuth1Fluig():New(cConsumer,cSecret,cHost,[cCallback])o:SetToken(cToken) / o:SetSecretToken(cSecretToken)o:GetUsers() --> cJson#Include "Protheus.ch"
User Function Ed441()
Local bPrepare := {|cKey,cSecret,cHost,cCallback| FWoAuth1Fluig():New(cKey,cSecret,cHost,cCallback)}
// Do not evaluate: configuration comes from protected storage.
Return NilPrepared configuration without authentication or external communication. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
© 2026 Usina.BR. All rights reserved. TOTVS, Protheus, Microsiga and their respective logos are trademarks of their owners. AdvPL Guide is independent and uses limited, attributed excerpts justified by educational purposes. See the Terms of Use. Terms of Use
Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.