• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Create custom share service

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • pingpong
    replied
    Originally posted by wr41th View Post
    No, i didn't try it as standalone c# app. I don't have VS. Just NinjaScriptEditor. Url through Chrome works correctly (message sent), but it doesn't work through NT Share service.

    Thank you Chris, i will continue troubleshooting by myself.
    HI wr41th. Did you get it fixed in the end ? If so please can you share the code?

    Leave a comment:


  • wr41th
    replied
    No, i didn't try it as standalone c# app. I don't have VS. Just NinjaScriptEditor. Url through Chrome works correctly (message sent), but it doesn't work through NT Share service.

    Thank you Chris, i will continue troubleshooting by myself.

    Leave a comment:


  • NinjaTrader_ChrisL
    replied
    Hello wr41th,

    Thanks for the reply.

    Support is limited to the share service only, so I can not look into the Telegram API much. Were you able to make a successful post request from a standalone C# application yet?

    I was able to find this public repository of a C# Telegram client:

    https://github.com/MrRoundRobin/telegram.bot

    I look forward to assisting further.

    Leave a comment:


  • wr41th
    replied
    Thank you Chris.
    I set this property to true and share service allowed to click Ok.

    I used Twitter share service as base for my Telegram service (cause it use HttpClient, not SmtpClient). But it doesn't work. I get this into log -
    13.11.2018 18:30:19 NinjaScript There was an error while sharing from the Share service Telegram: "An error occurred while sending the request."
    Can you check it out in attach?
    Attached Files

    Leave a comment:


  • NinjaTrader_ChrisL
    replied
    Hello wr41th,

    Thank you for the post, and welcome to the NinjaTrader forum.

    The IsConfigured property will tell if the share service is properly configured. You can see the Mail share service script set this in State.SetDefaults. The other share service scripts are open source, so they would be a good reference for creating a custom share service.

    Please let me know if I can assist further.

    Leave a comment:


  • wr41th
    started a topic Create custom share service

    Create custom share service

    Hi.

    I'm trying to create new custom share service for Telegram. I use NinjaTrader Editor -> New share Service, complete wizard. In Options -> Share Services new share service is available. I click Add button, then OK and get this Error:
    ...share service could not be saved. This share service has not been properly configured. Connect to the service before pressing Ok or Apply.
    What i missed?

Latest Posts

Collapse

Topics Statistics Last Post
Started by Da vinci, Today, 04:19 PM
0 responses
4 views
0 likes
Last Post Da vinci  
Started by brunoviveiros, Today, 09:36 AM
1 response
19 views
0 likes
Last Post NinjaTrader_BrandonH  
Started by GARZONJ, Today, 11:22 AM
1 response
10 views
0 likes
Last Post NinjaTrader_Jesse  
Started by KonalGondal, Today, 10:18 AM
1 response
19 views
0 likes
Last Post NinjaTrader_Kate  
Started by Jorge.andres.o, Today, 09:24 AM
4 responses
23 views
0 likes
Last Post NinjaTrader_PaulH  
Working...
X