vecna / mobilizon-poster Goto Github PK
View Code? Open in Web Editor NEWA simple nodejs script(s) to interact with mobilizon via command line
A simple nodejs script(s) to interact with mobilizon via command line
Configurate a list of URLs to fetch and publisch
Currently, the mobilizon-poster scripts are relatively slow to do be developed, also because my approach is to reverse the API by inspecting the browser traffic.
This is not the most efficient way, but I find it more straightforward rather than read the code of mobilizone. The documentation, although present, might offer clarification on some parameters, values, and logic, none more than this.
the scripts necessary are the ones that:
-unofficial
to the official
)I did implement the location resolution, which is mandatory to create an event (but at the moment is not in the repository and I've to retrieve it)
v :~/D/librevent/backend main $ node
Welcome to Node.js v16.15.1.
Type ".help" for more information.
> x = require('@_vecna/mobilizon-poster')
--event missing! required the numeric unique identified of as --event
Required options: event
To provide variables like event, you have three ways: --longopt, environment, or config.json
You can check out the documentation here: https://quickened.interoperability.tracking.exposed/mobilizon-poster
And if this should be different, please raise your point with a ticket: https://github.com/vecna/mobilizon-poster/issues
v :~/D/librevent/backend main $
Hi Claudio,
When using the login script and using the --longopts, the command fails with the stack trace as shown below. All node_modules are installed and I'm using node v12.10.0.
node bin/login.js --login EMAIL --password PASSWORD
.json decode error? TypeError: Only absolute URLs are supported
at getNodeRequestOptions (/Users/joey/mobilizon-poster/node_modules/node-fetch/lib/index.js:1305:9)
at /Users/joey/mobilizon-poster/node_modules/node-fetch/lib/index.js:1410:19
at new Promise (<anonymous>)
at fetch (/Users/joey/mobilizon-poster/node_modules/node-fetch/lib/index.js:1407:9)
at Object.mobilizoneHTTPAPIfetch (/Users/joey/mobilizon-poster/lib/shared.js:65:18)
at Object.perform (/Users/joey/mobilizon-poster/lib/login.js:22:39)
at connectAndSaveTokens (/Users/joey/mobilizon-poster/bin/login.js:25:31)
at Object.<anonymous> (/Users/joey/mobilizon-poster/bin/login.js:40:1)
at Module._compile (internal/modules/cjs/loader.js:936:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
I looked into the code and it appears that there might be a missing configuration value for api
? Should this be an included config option (--api
), and if so what's the correct URL?
as documented here: https://quickened.interoperability.tracking.exposed/mobilizon-poster/ would be better to allow login/password and support sign_in API, rather then inspect a token (that might become invalid too!)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.