| | |
| | | address := Translations::InterfaceDataset_DataCenter_Address(); |
| | | httpinterface := HTTPInterface::Create( address,80); |
| | | httpinterface.PostMethod( true ); |
| | | httpinterface.MediaType( Translations::InterfaceDataset_DataCenter_ContentType() ); |
| | | httpinterface.MediaType( Translations::InterfaceDataset_ContentType() ); |
| | | httpinterface.AddHeader( "clientId", Translations::InterfaceDataset_DataCenter_ClientId() ); |
| | | httpinterface.AddHeader( "clientSecret", Translations::InterfaceDataset_DataCenter_ClientSecret() ); |
| | | try{ |
| | |
| | | |
| | | if( loginfo.Success() ){ |
| | | resultJson := JSON::Parse( loginfo.Response() ); |
| | | code := resultJson.Get( "code" ).GetString(); |
| | | code := resultJson.Get( "code" ).GetNumber(); |
| | | msg := resultJson.Get( "message" ).GetString(); |
| | | data := resultJson.Get( "data" ); |
| | | |
| | | loginfo.ReturnMsg( msg ); |
| | | if( code = "200" ){ |
| | | total := resultJson.Get( "dataSize" ).GetNumber(); |
| | | if( code = 200 ){ |
| | | // total := resultJson.Get( "dataSize" ).GetNumber(); |
| | | loginfo.ReturnSuccess( true ); |
| | | loginfo.TotalRow( total ); |
| | | // loginfo.TotalRow( total ); |
| | | loginfo.UpdateLast(); |
| | | } |
| | | } |