NATION

PASSWORD

Agadar's Telegrammer (updated August 16th, '20)

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.

Advertisement

Remove ads

User avatar
LittleGermany
Political Columnist
 
Posts: 3
Founded: Sep 15, 2018
Ex-Nation

Postby LittleGermany » Fri Nov 23, 2018 10:08 pm

Hello i have been getting alot of
NationStates API returned: '400 Bad Request' from URL:

i dont think its anything on my side any ideas?

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Sat Nov 24, 2018 6:56 am

LittleGermany wrote:Hello i have been getting alot of
NationStates API returned: '400 Bad Request' from URL:

i dont think its anything on my side any ideas?


No. Can you give more information to work with?
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
LittleGermany
Political Columnist
 
Posts: 3
Founded: Sep 15, 2018
Ex-Nation

Postby LittleGermany » Sun Nov 25, 2018 3:59 pm

Agadar wrote:
LittleGermany wrote:Hello i have been getting alot of
NationStates API returned: '400 Bad Request' from URL:

i dont think its anything on my side any ideas?


No. Can you give more information to work with?

What information do you need?

User avatar
LittleGermany
Political Columnist
 
Posts: 3
Founded: Sep 15, 2018
Ex-Nation

Postby LittleGermany » Mon Nov 26, 2018 5:21 pm

LittleGermany wrote:
Agadar wrote:
No. Can you give more information to work with?

What information do you need?

i have all the updated java programs and i have the API keys and telegram keys to match and i seems to keep getting errors when i try to send them out. i sent the resulting error that comes up. not sure what else you need?

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Tue Nov 27, 2018 6:40 am

LittleGermany wrote:
LittleGermany wrote:What information do you need?

i have all the updated java programs and i have the API keys and telegram keys to match and i seems to keep getting errors when i try to send them out. i sent the resulting error that comes up. not sure what else you need?


Does the error not print anything after the ':'? It should contain a description of what went wrong.

If possible, copy-paste the entirety of the output window here or send it to me in a telegram so I can take a look at it.

EDIT: Make sure to obscure your private keys when you copy-paste the output.
Last edited by Agadar on Tue Nov 27, 2018 6:40 am, edited 1 time in total.
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Banana Man154
Political Columnist
 
Posts: 2
Founded: Oct 20, 2017
Ex-Nation

api not working

Postby Banana Man154 » Mon Dec 03, 2018 6:07 pm

Agadar wrote:
LittleGermany wrote:i have all the updated java programs and i have the API keys and telegram keys to match and i seems to keep getting errors when i try to send them out. i sent the resulting error that comes up. not sure what else you need?


Does the error not print anything after the ':'? It should contain a description of what went wrong.

If possible, copy-paste the entirety of the output window here or send it to me in a telegram so I can take a look at it.

EDIT: Make sure to obscure your private keys when you copy-paste the output.

mine keeps saying "403 Client not registered for appi" and I know I have the right keys, what should I try to do?

User avatar
Phydios
Minister
 
Posts: 2567
Founded: Dec 06, 2014
Left-Leaning College State

Postby Phydios » Mon Dec 03, 2018 8:27 pm

Banana Man154 wrote:mine keeps saying "403 Client not registered for appi" and I know I have the right keys, what should I try to do?

If you aren't registered, you need to file a GHR to get new API keys. Yours may have been lost in the server problems this past summer.
If you claim to be religious but don’t control your tongue, you are fooling yourself, and your religion is worthless. Pure and genuine religion in the sight of God the Father means caring for orphans and widows in their distress and refusing to let the world corrupt you. | Not everyone who calls out to me, ‘Lord! Lord!’ will enter the Kingdom of Heaven. Only those who actually do the will of my Father in heaven will enter. On judgment day many will say to me, ‘Lord! Lord! We prophesied in your name and cast out demons in your name and performed many miracles in your name.’ But I will reply, ‘I never knew you. Get away from me, you who break God’s laws.’
James 1:26-27, Matthew 7:21-23

User avatar
Frisbeeteria
Senior Game Moderator
 
Posts: 27796
Founded: Dec 16, 2003
Capitalizt

Postby Frisbeeteria » Mon Dec 03, 2018 8:44 pm

Phydios wrote:Yours may have been lost in the server problems this past summer.

He's not supplying all the relevant information. He's using a different nation's key, but presumably from the correct region. The Client Key is working as expected for the key owner, but not for the secondary recruiter. Mods can't and don't supply tech advice on third party scripts, so I can't tell him anything useful. I'm guessing that's why he posted here.

User avatar
Phydios
Minister
 
Posts: 2567
Founded: Dec 06, 2014
Left-Leaning College State

Postby Phydios » Tue Dec 04, 2018 2:58 pm

Frisbeeteria wrote:
Phydios wrote:Yours may have been lost in the server problems this past summer.

He's not supplying all the relevant information. He's using a different nation's key, but presumably from the correct region. The Client Key is working as expected for the key owner, but not for the secondary recruiter. Mods can't and don't supply tech advice on third party scripts, so I can't tell him anything useful. I'm guessing that's why he posted here.

Well, that certainly changes the situation. Hope he figures it out.
If you claim to be religious but don’t control your tongue, you are fooling yourself, and your religion is worthless. Pure and genuine religion in the sight of God the Father means caring for orphans and widows in their distress and refusing to let the world corrupt you. | Not everyone who calls out to me, ‘Lord! Lord!’ will enter the Kingdom of Heaven. Only those who actually do the will of my Father in heaven will enter. On judgment day many will say to me, ‘Lord! Lord! We prophesied in your name and cast out demons in your name and performed many miracles in your name.’ But I will reply, ‘I never knew you. Get away from me, you who break God’s laws.’
James 1:26-27, Matthew 7:21-23

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Sat Dec 22, 2018 8:54 am

Version 2.0.0 has been released for public testing. It depends on Java 11 (previous version depended on Java 8 ). Happy telegramming!
Last edited by Agadar on Sat Dec 22, 2018 8:56 am, edited 1 time in total.
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Honeydewistania
Senator
 
Posts: 3875
Founded: Jun 09, 2017
Ex-Nation

Postby Honeydewistania » Sat Dec 22, 2018 8:57 am

Why doesn't this provide a bigger list of new nations? The new nations filter only does 2 hours, so it's annoying that it's not constant.
Home of the first best pizza topping known to NationStates | Prolific Security Council Author (15x resolutions written) | Not that one fraud, Pineappleistania(ew) | Mouthpiece for Melons' first-rate SC takes | read this please

Alger wrote:if you have egoquotes in your signature, touch grass

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Sat Dec 22, 2018 9:16 am

Honeydewistania wrote:Why doesn't this provide a bigger list of new nations? The new nations filter only does 2 hours, so it's annoying that it's not constant.


That's because the API only returns the 50 newest nations each time it's called. However, my telegrammer provides options that allow you to refresh the list after every telegram, and to run indefinitely. This means you can leave it running indefinitely and it will continue to send telegrams to new nations until the end of the world.
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Townsvalley
Envoy
 
Posts: 279
Founded: Dec 18, 2017
Authoritarian Democracy

Postby Townsvalley » Thu Jan 24, 2019 2:11 am

Agadar wrote:Version 2.0.0 has been released for public testing. It depends on Java 11 (previous version depended on Java 8 ). Happy telegramming!

bugs
1.it doesn't run. the cmd just flashes. and then closes. while the 1.6.0 version runs smoothly.

Question:
The telegrammer 1.6.0 says QUED for "nation"
does that mean the telegram has been sent?
Last edited by Townsvalley on Thu Jan 24, 2019 4:15 am, edited 1 time in total.
Newlands Stock Exchange|Arms Collway Petroleum
Former Support Minister in The North Pacific



『 Former WAD & President Of COIS,Minister Of Trade & Development in COIS & Map Cartographer in COIS
〖 Former Minister of Bureau of Exchange Statistics & Trade in Kaisertum Osterriech 』
Awarded: The Most Illustrious and Exalted Order of the COIS & Order of Al-Idrisi

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Fri Jan 25, 2019 3:19 pm

Townsvalley wrote:
Agadar wrote:Version 2.0.0 has been released for public testing. It depends on Java 11 (previous version depended on Java 8 ). Happy telegramming!

bugs
1.it doesn't run. the cmd just flashes. and then closes. while the 1.6.0 version runs smoothly.

Question:
The telegrammer 1.6.0 says QUED for "nation"
does that mean the telegram has been sent?


Is your Java version 11?

As for your question: no, it means the telegram has been queued. As with sending telegrams using stamps, this means the telegram will likely be sent soon, but it is no guarantee.
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Townsvalley
Envoy
 
Posts: 279
Founded: Dec 18, 2017
Authoritarian Democracy

Postby Townsvalley » Sat Jan 26, 2019 1:24 pm

Agadar wrote:
Townsvalley wrote:bugs
1.it doesn't run. the cmd just flashes. and then closes. while the 1.6.0 version runs smoothly.

Question:
The telegrammer 1.6.0 says QUED for "nation"
does that mean the telegram has been sent?


Is your Java version 11?

As for your question: no, it means the telegram has been queued. As with sending telegrams using stamps, this means the telegram will likely be sent soon, but it is no guarantee.

ok got it running
Newlands Stock Exchange|Arms Collway Petroleum
Former Support Minister in The North Pacific



『 Former WAD & President Of COIS,Minister Of Trade & Development in COIS & Map Cartographer in COIS
〖 Former Minister of Bureau of Exchange Statistics & Trade in Kaisertum Osterriech 』
Awarded: The Most Illustrious and Exalted Order of the COIS & Order of Al-Idrisi

User avatar
North Covenant
Envoy
 
Posts: 274
Founded: Oct 09, 2014
Inoffensive Centrist Democracy

Postby North Covenant » Sat Apr 06, 2019 10:47 am

I was wondering is there any chance you'd be willing to add a filter excluding nations with numbers in their names, as a lot of puppets get caught up in the clutter where I'll end up sending a recruitment telegram to the same person like 25 times
Citizen of The Sovereign Charter
Glory to Fundamental Forces

User avatar
Tim-Opolis
Negotiator
 
Posts: 6197
Founded: Feb 17, 2010
Iron Fist Consumerists

Postby Tim-Opolis » Sat Apr 06, 2019 11:08 pm

North Covenant wrote:I was wondering is there any chance you'd be willing to add a filter excluding nations with numbers in their names, as a lot of puppets get caught up in the clutter where I'll end up sending a recruitment telegram to the same person like 25 times

To expand on this, if actually feasible and API legal, it would be amazing to have a list of exclusions that would filter out nation names that contained words of characters on the list.
Want to be a hero? Join The Grey Wardens - Help Us Save Nationstates
( ͡° ͜ʖ ͡°) Commended by Security Council Resolution #420 ( ͡° ͜ʖ ͡°)

Author of SC#74, SC #203, SC #222, and SC #238 | Co-Author of SC#191
Founder of Spiritus | Three-Time Delegate of Osiris | Pharaoh of the Islamic Republics of Iran | Hero of Greece
<Koth - 06/30/2020> I mean as far as GPers go, Tim is one of the most iconic

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Mon Apr 08, 2019 5:47 am

Both suggestions are feasible. I'll add them to the todo list.
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
East Meranopirus
Diplomat
 
Posts: 540
Founded: Jul 28, 2018
Ex-Nation

Postby East Meranopirus » Sun Apr 28, 2019 12:11 am

So does the output only show the queuing but not the sending? Because everything on my output is either "queued telegram for NATION" or "skipped recipient NATION".

User avatar
United States of Americanas
Envoy
 
Posts: 328
Founded: Jan 23, 2017
Scandinavian Liberal Paradise

Postby United States of Americanas » Wed May 01, 2019 9:15 pm

Anyone have experience running this app on a Macintosh?

Is there MacOS support? Specifically for 10.14 Mojave. Looks like a really nice tool and I could really use this for campaigning my WA proposals.
Political Compass as of Jul 17 2022

Economic Left/Right: -7.88
Social Libertarian/Authoritarian: -6.15



Damn right I’m a liberal democratic socialist. I sit in the ranks of Caroline Lucas

User avatar
Kaystein
Diplomat
 
Posts: 653
Founded: Jan 12, 2019
Ex-Nation

Postby Kaystein » Sat May 04, 2019 1:38 am

So i downloaded this because it seems useful. But I'm not savvy with APIs. Can I maybe get some more information about what I'm supposed to do with it? Specifically how do I set it up so I can use it to automate sending telegrams in my region?

User avatar
United States of Americanas
Envoy
 
Posts: 328
Founded: Jan 23, 2017
Scandinavian Liberal Paradise

Postby United States of Americanas » Mon May 06, 2019 9:17 pm

Kaystein wrote:So i downloaded this because it seems useful. But I'm not savvy with APIs. Can I maybe get some more information about what I'm supposed to do with it? Specifically how do I set it up so I can use it to automate sending telegrams in my region?


1. https://www.nationstates.net/pages/api.html#telegrams Read this and obtain an API “client ID” then follow the instructions on page to get a TGID / secret key.

2. Plug the Client ID into the program along with the TGID and secret key.

3. Use filters and tools in the program to set up your telegram recipient list.

4. Begin sending telegrams.
Political Compass as of Jul 17 2022

Economic Left/Right: -7.88
Social Libertarian/Authoritarian: -6.15



Damn right I’m a liberal democratic socialist. I sit in the ranks of Caroline Lucas

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Sun May 12, 2019 7:17 am

East Meranopirus wrote:So does the output only show the queuing but not the sending? Because everything on my output is either "queued telegram for NATION" or "skipped recipient NATION".


That is correct. The sending of telegrams is not guaranteed, even when sending telegrams using stamps instead of the API.

United States of Americanas wrote:Anyone have experience running this app on a Macintosh?

Is there MacOS support? Specifically for 10.14 Mojave. Looks like a really nice tool and I could really use this for campaigning my WA proposals.


I have no experience with running this on a Mac, but seeing as there are Java versions for Mac, you shouldn't have trouble running my telegrammer.

Kaystein wrote:So i downloaded this because it seems useful. But I'm not savvy with APIs. Can I maybe get some more information about what I'm supposed to do with it? Specifically how do I set it up so I can use it to automate sending telegrams in my region?


Check the OP for Ever-Wandering Souls's great guide on getting started with sending telegrams.
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

User avatar
Radical Republic
Civil Servant
 
Posts: 10
Founded: Jun 20, 2018
New York Times Democracy

Postby Radical Republic » Mon Oct 21, 2019 9:08 am

Total noob moment but how do I open it once it is installed and unzipped? I have both telegrammer and code installed

User avatar
Agadar
Powerbroker
 
Posts: 7784
Founded: Dec 06, 2009
Psychotic Dictatorship

Postby Agadar » Wed Oct 23, 2019 2:19 am

Radical Republic wrote:Total noob moment but how do I open it once it is installed and unzipped? I have both telegrammer and code installed


I've replied to your telegram.
Proud resident of The Western Isles, the #1 role-playing region!
Developer of Telegrammer, NS API Java Wrapper, and more!

PreviousNext

Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: Avkhazia, IdontCare, Ineva, Inner Ted Imazahvatia, Khantin, Neo-Hermitius, Planetary Soviet Socialist Republics, Santiago AU, The Xenopolis Confederation, Triomatia

Advertisement

Remove ads