Jump to content

JIMSMITH

Members
  • Content Count

    54
  • Joined

  • Last visited

Everything posted by JIMSMITH

  1. JIMSMITH

    Sending Email VIA Google.

    Do I find a http server on the web and install it? I will be checking for solutions in the meanwhile. The core of the app that I am testing is from Geoffrey Smith's GmailAuthsmtp demo. This entire oauth2 process is new to me and a little unclear. I think it has an http server component internally. Not sure if I broke it an it no longer works.
  2. JIMSMITH

    Sending Email VIA Google.

    Not sure why I end up with local. The application is in dev/test mode. I get to a web page that says google has not verified this app. Thanks for your help Google uses localhost for OAuth2 authentication during development to simplify the process of testing and debugging. When you're developing an application, you can use localhost as the redirect URI to avoid the complexities of setting up a public server for testing purposes. This allows developers to run and test their applications locally without exposing their credentials and tokens to the internet.
  3. JIMSMITH

    sending email with oauth2

    Has anybody been able to send email from Delphi using oauth2. Every example that I have seen includes SMTP.UseTLS := utUseExplicitTLS; and SMTP.AuthType := satOAuth2; which appear undefined in my version 11 or 10.x? I am starting from scratch as Google tends to change access requirements to send email.
  4. JIMSMITH

    sending email with oauth2

    Thanks for responding to my post. Can you advise which example code should I place the creds and IdSMTP1 code into. FYI: The geoffsmith sample project prompts for user authentication. I can have that as this will execute as a back end process and not be visible to the ui. I just need to send an email
  5. JIMSMITH

    creating a frame at runtime

    I have 5 frames that I want to create at runtime. The frames are descended from tframe2 or tframe3 how can I create this and allow the type (tframe2 or tframe3) to be specified in a variable.? So the object will be specified in a variable and the type will be in a variable as well. So tframe2 and tframe3 will be defined and created at runtime, but the actual frame and descendant from type would be in a variable.
  6. Is it possible to load a timagelist with a .jpeg via TMemory stream?
  7. I created a webmodule and assigned an action pathinfo of /getname*. The question is how do I create parameters for values say parameters ssn and dob would this become /getname/($ssn)/($dob)? Would really appreciate clarity.
  8. JIMSMITH

    Using Deplhi TWebmodule with parameter

    I was never able to trigger the action with this implementation. I will try again. I don't think that I tried it properly.
  9. JIMSMITH

    Using Deplhi TWebmodule with parameter

    I'm just glad to know that there is a legitimate format / usage of the option that you specified. I'm not quite sure how to specify the parameters in the url with the /getname/* option. The other option was /getname?name=jim&zip=91001 Don't know how to implement the other.
  10. JIMSMITH

    Using Deplhi TWebmodule with parameter

    Okay. Thanks for your assistance.
  11. JIMSMITH

    Using Deplhi TWebmodule with parameter

    Thanks for responding to my post. This actually worked by removing the additional characters / symbols. Do you know why there are many examples the use other options in the pathinfo property? Examples are: /getname/* {seen in some youtube videos} /getname/data/:id {thoughts are that id would be a parameter} Now I am curious.
  12. Has anybody had experience installing the DelphiMVCFramework. The documentation references opening C:\dmvc\ideexpert\DMVC_IDE_Expert_D102Tokyo.dproj from the IDE. The problem that I have is that this does .dproj file does not exist. Trying to see if this will work for me or do I need to create my own mini rest server.
  13. JIMSMITH

    install the DelphiMVCFramework

    Thanks for the clarity. Now I know how the versioning education.
  14. JIMSMITH

    install the DelphiMVCFramework

    Thanks for responding. This is correct, but what is the difference between the 102, 103, 104, 110 packages. I could not tie them to a specific version of Delphi. FYI I have Delphi version 10.1, and 11.
  15. I need to create a rest server that returns a json data after the client application provide 3 parameters of information. We will take those 3 parameters from a client connection, execute a query, and build the json to return. The client application will be remote to the server that hosts the db server. Do I need IIS or can the delphi rest server listen on port 80 and receive the parameters and return the response?
  16. Thanks for your response.
  17. Only need to serve a few hundred connections at most. Initially a dozen will work..
  18. Does anybody know where I can find the source code for the 4 demo Rest Web Services projects that were presented by Danny Wind. What I find on the web is the source code for the 1st of the series, but nothing on the other 3 presentations. There were really 3, but a 4th added IIS information.
  19. JIMSMITH

    Parsing a json file

    I have a json file that may contain multiple groups. I am using Delphi 10.1 for reference. I want to be able to go to a certain group and loop all of the json objects and retrieve values. I don't see findvalue in this version. My question is what is the best way to search to the group 1 section and loop all of the json objects to retrieve their values. {"Group1":{"001":{"ImgHot":"hodincodtext","ImgNormal":"hodincodtext2","ImgChannel":"hodincodtext3","Caption":"Cats"},"002":{"ImgHot":"hodincodtext","ImgNormal":"hodincodtext2","ImgChannel":"hodincodtext3","Caption":"Dogs"}}} peoplets.json
  20. JIMSMITH

    Parsing a json file

    Thanks.
  21. JIMSMITH

    Parsing a json file

    Thanks for this example link.
  22. JIMSMITH

    clear a tjsonobject

    Is there a way to remove pairs, as in all pairs, from a tjsonobject? Looking for something like tjsonobject.clear.
  23. JIMSMITH

    clear a tjsonobject

    If I try the setpairs above I receive the message below when compiling. [dcc32 Error] UfrmChannelConfig.pas(161): E2010 Incompatible types: 'System.Generics.Collections.TList<System.JSON.TJSONPair>' and 'Set'
  24. How do I place 3 to 4 images into a JSON object and send to a server. Also, need to be able to retrieve a string with 3 or 4 items from this server and store to file on a computer. If someone can point me to youtube videos or other google references on this it will be helpful. Code and examples compatible with Delphi XE11.3 (berlin or beyond). Thanks for your help.
  25. Totally agree with your observation and I was attempting to explain this in my followup. Anyway you figured it out and solved this problem in the best way. possible. I sent a direct message and really thank you.
×