Welcome, Guest. Please login or register.

Author Topic: BinSend: Send and decode binary attachments  (Read 360 times)

AyrA

  • BM-Bc7Rspa4zxAPy9PK26vmcyoovftipStp
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1261
  • Karma: +75/-7
  • bitmessage.ch and timeservice operator
    • View Profile
    • AyrAs Homepage
BinSend: Send and decode binary attachments
« on: June 13, 2018, 05:53:23 PM »
I completely rewrote BinSend from scratch over the last two weeks.
The interface has been massively improved, the client properly handles the SameOrigin attribute and the overall bitmessage API integration is better.
Bonus: The repository is no longer a big mess.

Source:
GitHub

Current Version:
1.3

Old Versions:
1.2
1.1
1.0

Note: I've set a tag "Old_Version" into the repository that marks the last version that still uses the old BinSend format. There is no binary download available but the compiled results are included in the repository itself (BinSend/bin/Release)
« Last Edit: June 29, 2018, 09:07:31 PM by AyrA »
My Address: BM-Bc7Rspa4zxAPy9PK26vmcyoovftipStp
Bitmessage Time Service (Subscribe): BM-BcbRqcFFSQUUmXFKsPJgVQPSiFA3Xash
Support the Multipart Message Declaration Draft for Bitmessage: https://bitmessage.org/forum/index.php/topic,1553.0.html
Free Bitmessage to E-Mail Gateway: https://bitmessage.ch

AyrA

  • BM-Bc7Rspa4zxAPy9PK26vmcyoovftipStp
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1261
  • Karma: +75/-7
  • bitmessage.ch and timeservice operator
    • View Profile
    • AyrAs Homepage
Re: BinSend: Send and decode binary attachments
« Reply #1 on: June 14, 2018, 12:08:05 PM »
Updated to 1.1, see first post
My Address: BM-Bc7Rspa4zxAPy9PK26vmcyoovftipStp
Bitmessage Time Service (Subscribe): BM-BcbRqcFFSQUUmXFKsPJgVQPSiFA3Xash
Support the Multipart Message Declaration Draft for Bitmessage: https://bitmessage.org/forum/index.php/topic,1553.0.html
Free Bitmessage to E-Mail Gateway: https://bitmessage.ch

battlesbit

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: BinSend: Send and decode binary attachments
« Reply #2 on: June 15, 2018, 05:52:18 PM »
"Unable to make API request. Reason: Unable to connect to the remote sewer"

Any instructions on how to setup the API connection parameters?

AyrA

  • BM-Bc7Rspa4zxAPy9PK26vmcyoovftipStp
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1261
  • Karma: +75/-7
  • bitmessage.ch and timeservice operator
    • View Profile
    • AyrAs Homepage
Re: BinSend: Send and decode binary attachments
« Reply #3 on: June 15, 2018, 07:43:57 PM »
"Unable to make API request. Reason: Unable to connect to the remote server"

Any instructions on how to setup the API connection parameters?


Be sure bitmessage is not running when you perform the steps below.

- Find and open your keys.dat file in a text editor. For possible locations, see here

The file will start with a section named "[bitmessagesettings]" which contains "name = value" pairs, one per line.
Insert these pairs below into said section:

Code: [Select]
apienabled = true
apiport = 8442
apiinterface = 127.0.0.1
apiusername = username
apipassword = password

- Feel free to set a custom username and password. I recommend only using a-z and 0-9 to avoid any problems. The values don't need to be too secure as long as you leave the interface to "127.0.0.1" because this address limits access by applications to your own computer.
- watch out for the spaces around "=", keep them
- Check if the section already contains any of these 5 value pairs and if so, delete those that already exist.

Save the file and start bitmessage, now fill in the same values into BinSend


Keys.dat

If you have trouble finding the file, run bitmessage and check the "File" menu. There's an option to open keys.dat to manage your keys.
Recent bitmessage versions will show you the path to said file when you click this option

Opening unknown files

The easiest way is to type "notepad" into your start menu search and open it, then drag keys.dat onto the editor.

More

If I have time this weekend I try to automate this process with BinSend
My Address: BM-Bc7Rspa4zxAPy9PK26vmcyoovftipStp
Bitmessage Time Service (Subscribe): BM-BcbRqcFFSQUUmXFKsPJgVQPSiFA3Xash
Support the Multipart Message Declaration Draft for Bitmessage: https://bitmessage.org/forum/index.php/topic,1553.0.html
Free Bitmessage to E-Mail Gateway: https://bitmessage.ch

battlesbit

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: BinSend: Send and decode binary attachments
« Reply #4 on: June 16, 2018, 11:44:08 AM »
Success!

API OK. Detected client: PyBitmessage 0.6.3.2

Appreciate the work and help.

The Bitmessage wiki needs to be updated with this and other instructions/entries.  Things like the Windows BitMsgMailChecker should be included.
« Last Edit: June 16, 2018, 11:48:52 AM by battlesbit »

AyrA

  • BM-Bc7Rspa4zxAPy9PK26vmcyoovftipStp
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1261
  • Karma: +75/-7
  • bitmessage.ch and timeservice operator
    • View Profile
    • AyrAs Homepage
Re: BinSend: Send and decode binary attachments
« Reply #5 on: June 16, 2018, 02:33:46 PM »
I agree that the wiki is out of date. A lot of the API functions are completely missing or documented wrong. I personally would have rewritten the API long time ago.


The wiki itself is only for the official client and the protocol itself, not for 3rd party applications. Every application should come with its own instructions.
My Address: BM-Bc7Rspa4zxAPy9PK26vmcyoovftipStp
Bitmessage Time Service (Subscribe): BM-BcbRqcFFSQUUmXFKsPJgVQPSiFA3Xash
Support the Multipart Message Declaration Draft for Bitmessage: https://bitmessage.org/forum/index.php/topic,1553.0.html
Free Bitmessage to E-Mail Gateway: https://bitmessage.ch

AyrA

  • BM-Bc7Rspa4zxAPy9PK26vmcyoovftipStp
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1261
  • Karma: +75/-7
  • bitmessage.ch and timeservice operator
    • View Profile
    • AyrAs Homepage
Re: BinSend: Send and decode binary attachments
« Reply #6 on: June 17, 2018, 01:56:12 PM »
The application has been updated to 1.2. It can now read API settings from keys.dat and can also update keys.dat if it misses API settings.
My Address: BM-Bc7Rspa4zxAPy9PK26vmcyoovftipStp
Bitmessage Time Service (Subscribe): BM-BcbRqcFFSQUUmXFKsPJgVQPSiFA3Xash
Support the Multipart Message Declaration Draft for Bitmessage: https://bitmessage.org/forum/index.php/topic,1553.0.html
Free Bitmessage to E-Mail Gateway: https://bitmessage.ch

AyrA

  • BM-Bc7Rspa4zxAPy9PK26vmcyoovftipStp
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1261
  • Karma: +75/-7
  • bitmessage.ch and timeservice operator
    • View Profile
    • AyrAs Homepage
Re: BinSend: Send and decode binary attachments
« Reply #7 on: June 29, 2018, 09:08:45 PM »
Updated to 1.3

Template creation in the UI was not possible in previous versions. it should work now
My Address: BM-Bc7Rspa4zxAPy9PK26vmcyoovftipStp
Bitmessage Time Service (Subscribe): BM-BcbRqcFFSQUUmXFKsPJgVQPSiFA3Xash
Support the Multipart Message Declaration Draft for Bitmessage: https://bitmessage.org/forum/index.php/topic,1553.0.html
Free Bitmessage to E-Mail Gateway: https://bitmessage.ch