Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    scudiese
    @scudiese
    Not sure if anyone is here, but I am in serious need of help setting up custom integrations. I just took some time to understand the process of creating repositories, branches, commits, and pulls. When conferring with the Hello World walk-through with Github (https://github.com/Swydo/custom-integrations/blob/master/docs/guides/helloWorld.md), it just seems that there are so many steps left out from the very beginning. The first step is to "Initialize the Project" and is immediately followed by code that I do not understand. Is there an easier walkthrough any of you know of.
    Quint Stoffers
    @quintstoffers

    @scudiese We're definitely here :smile:

    You're looking at the very first version of the hello world guide, so I can imagine there are a few things we can improve. Looking at the guide it doesn't mention prerequisites, so we should look into documenting those for sure!

    The most important requirement is having a version of Node.js installed, which you can download from the official website or install in various other ways if you want to dive into that (many of us use nvm). With Node.js installed and a code editor such as Visual Studio Code you should be good!

    As for the first lines of code (I assume you mean the code block starting with the mkdir command) those are meant to run in a terminal or command prompt. Are you familiar with either of those?

    scudiese
    @scudiese
    Cheers, Quint. Thanks for the response. I did not have Node.js installed. I have since installed Node.js and I have Visual Studio Code. As for the code block starting with mkdir, I am not familiar. I must be honest, I have no knowledge of coding whatsoever. I was hoping I would be able to follow Hello World to learn custom integrations. Now, am I to begin this first code block through the Node.js program or Visual Studio Code?
    Quint Stoffers
    @quintstoffers

    That code is supposed to run in a terminal or command prompt. Depending on your operating system that'd be literally called "terminal", or cmd for Windows.

    You'll definitely have to pick up some coding experience to build a custom integration, though. Grasping the basics of Node.js and being able to run commands is a good start, perhaps through codeacademy.com?

    scudiese
    @scudiese
    Ah, of course. I ran the code through the Visual Studio Code terminal like an idiot. I've looked into codecademy before. The walkthrough for Swydo Custom Integrations has a step-by-step process to grasp the process (beginning with creating a Hello World). As long as I follow these steps, I feel I will be prepared.
    Quint Stoffers
    @quintstoffers
    The visual studio code terminal should work.
    scudiese
    @scudiese
    It has worked. I am following the steps along the way now. I really appreciate your help, Quint.
    Quint Stoffers
    @quintstoffers
    Glad to hear you're progressing :smiley:
    swordsteel
    @swordsteel
    Hi everyone... so i have played with Swydo and can do reports from data that part works nice.... but i really need to do is some how POST to one endpoint so the system behind can generate the data from the post data, then the widget need to remember an ID and use that for a GET on another endpoint and get the data as soon as it completed..... is there anyway to do this?
    Quint Stoffers
    @quintstoffers
    Hi! How long do you expect the data generation process to take?
    swordsteel
    @swordsteel
    Hi @quintstoffers normally it's really fast but if you ask for a lot of data it can take time... the longest i have run have been some seconds...
    Quint Stoffers
    @quintstoffers
    That's not all that bad, actually. Currently there's a 30 second timeout, during which you can make the POST request to trigger the job as well as start polling for the result.
    Using that approach there's no need to persist anything outside of the request to your connector.
    swordsteel
    @swordsteel
    @quintstoffers so how can i make a form that can send the option in the post request.... every report endpoint have different option.
    Quint Stoffers
    @quintstoffers
    That "form" is a combination of your authentication configuration, and your field configuration.
    The user connects your system's account to Swydo (maybe using their login credentials, some kind of token or OAuth). They'll then create a new widget where they select the fields they want to see in their report.
    Together (the credentials and the fields requested by the user) are like a form, a way to request data from your connector.
    swordsteel
    @swordsteel
    @quintstoffers i have added a scope that will let you pick a project this is used for all endpoints we have... i don't expect you to change your side.... and I'm looking in to what we need to change on our side also... I have some ideas but it would limit things but that would work... was hopping there was some way to add fields that was used on the widget as in a request... and a way to remember a id in that widget so it could be reuse for a report...
    Quint Stoffers
    @quintstoffers
    Besides metrics, dimensions and filters there's nothing a user can save on a widget that matters to your connector. Of course I'm not familiar with your use case, but we don't often need extra info stored on the widget.
    erikv18
    @erikv18

    Hey guys!
    We're trying to setup a custom integration for Swydo. To get started we're just following the "Hello World" example, but it's not working. When we add the Hello World connection in Swydo, we get an error, and the server console outputs

    error:
    error: Cannot destructure property pool of 'undefined' or 'null'.
    error:
    error:
    error: Cannot destructure property pool of 'undefined' or 'null'.
    error:
    error:
    error: Cannot destructure property pool of 'undefined' or 'null'.
    error:

    This happens both on a dev server I'm using, and on my local machine. Again, just following the Hello World guide (https://github.com/Swydo/custom-integrations/blob/master/docs/guides/helloWorld.md) and literally using the example fields provided

    Any ideas on how to fix this?

    Kevin Clifford
    @Cliffzz
    Hey Erik
    Looks like this is actually a bug that happens when two request run in parallel, for a fix see Swydo/byol#57
    We'll role out an update with this fix soon.
    Kevin Clifford
    @Cliffzz
    @erikv18 Fix has been released, please update @swydo/custom-integrations to 1.0.55 to resolve your issue.
    erikv18
    @erikv18
    Hey! It works now! Thank you so much!
    erikv18
    @erikv18
    Hiya!
    Thanks again for the help. We got our integration working just like we want to, it seems!
    However, is there a way for us to change the icon for the custom data source in the reports? Right now it shows the Swydo S logo. We'd like to change this
    Rabell Creative
    @RabellCreative_twitter
    Hi all, I'm a front end WordPress developer and mostly use Swydo for Google Ads reporting and other super basic tasks. However, I have some clients who want to start using it for social media reporting, which is great, except that "regular" Twitter (not Twitter ads) doesn't seem to be supported. Does anyone have experience setting up Twitter as a custom integration? Is it something I could hire someone to tackle? (this documentation is quite a good bit over my head) Would it break fairly often and have to be updated? Thanks for your thoughts! My email is laura@rabellcreative.com if you prefer to reply directly.
    1 reply
    Advocate Marketing
    @AdvocateMarket1_twitter
    I'm looking for a dev to build a custom integration between Swydo and Kartra. This would be a paid gig if there is anyone available?
    1 reply
    Quint Stoffers
    @quintstoffers
    @erikv18 Changing the logo is something that needs to be done manually on our side at the moment, for instance as part of the partner program. Contacting support at support@swydo.com or through the in-app chat will get that on our radar.
    Sean Koole
    @seankoole
    Morning
    Sean Koole
    @seankoole

    We're working on an integration between BigCommerce/Shopify/WooCommerce. Right now we have this setpup ready:

    However, you can see that our graphs don't flow nicely, like here:

    What's happening is that the graphs go to 0 every time. Is there a way to solve this?

    Sean Koole
    @seankoole
    This is he JSON file, we use for it
    Sean Koole
    @seankoole
    Never mind, turns out we were doing it by hour, so makes sense it goes to 0, Now we've done days, and it works
    1 reply
    Mira Thakkar
    @mira-thakkar
    How can i show the metric as rounded value that is supposed to take average when doing aggregation in KPI ?
    Mira Thakkar
    @mira-thakkar
    @quintstoffers Can you help me how can i display number field as currency with its symbol ?
    Kevin Clifford
    @Cliffzz
    @mira-thakkar To display fields as a currency you need to set this on field:
    const field = {
        id: 'currencyField',
        name: 'Currency Field',
        type: 'Number',
        display: {
            type: 'currency'
        }
    };
    For currencies the returned data is in micro money so depending on your data you might have to multiply it by 1000000 in your connector function.
    1 reply
    Kevin Clifford
    @Cliffzz

    In order to control which currency symbol is displayed, e.g. $ or € you need to add a currency_code meta property to your scope like so:

        scope: {
            parts: [{
                key: 'profile_id',
                optionsRequest: {
                    endpointId: 'example-adapter:foo',
                    valueField: 'id',
                    nameField: 'name',
                    metaFields: ['currency_code'],
                },
            }],
        },

    It must be possible query currency_code from the foo endpoint return value type for currency symbol should be in https://en.wikipedia.org/wiki/ISO_4217 format. For example USD.

    Mira Thakkar
    @mira-thakkar
    @Cliffzz In custom integration live mode, Data provider icon is not being rendered with 403 error and response like:
    {
    "code": 403,
    "error": "NO_TEAM_ACCESS",
    "reason": "User has no team access"
    }
    This happens when i try to share online report or dashboard link
    Kevin Clifford
    @Cliffzz
    @mira-thakkar Sorry for the late response, looks like a bug on our side. We will look into it.
    Sean Koole
    @seankoole
    @Cliffzz any update?
    4 replies
    Ah, just seeing your message is from y esterday
    cbedford-pico
    @cbedford-pico
    Hello Swydo custom-integrations. I've been trying to get hello-world working, but my node-js is being finicky...
    '''
    17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "validate"
    18 verbose node v14.15.5
    19 verbose npm v6.14.11
    20 error code ELIFECYCLE
    21 error errno 1'''
    1 reply
    any ideas?
    Might these warnings have something to do with the issue?
    npm notice created a lockfile as package-lock.json. You should commit this file.
    npm WARN notsup Unsupported engine for @swydo/custom-integrations@1.0.205: wanted: {"node":"12"} (current: {"node":"14.15.5","npm":"6.14.11"})
    npm WARN notsup Not compatible with your version of node/npm: @swydo/custom-integrations@1.0.205
    npm WARN swydo-hello-world@1.0.0 No repository field.
    8 replies
    v18dev
    @v18dev
    Hi there! We have a custom integration running against an API of ours since over a year and it has been working flawlessly. Yesterday we discovered that widgets using this integration was returning error messages both when attempting to show data and when trying to access configuration. Nothing has changed in the GitHub repo since and nothing had changed in the custom integration-section of Swydo either. I tried deploying the integration again but it fails with no errors or explanations. Also when trying to run npm run validateit seems like the custom-integrations depencency just isn't willing to roll with it.
    Any suggestions or are you actively working on something?
    2 replies
    tmeck
    @tmeck:matrix.org
    [m]
    We are looking to have a KPI for Reddit ads, how do we go about creating a custom integration for that?
    3 replies
    Chase Edson
    @cedson61
    @quintstoffers trying to get the hello world npx command to work, but i’m now getting this error on Node 12:
    cedson@Chases-MacBook-Pro swydo-hello-world % npx @swydo/custom-integrations init
    
    Cannot use import statement outside a module
    (node:19952) Warning: require() of ES modules is not supported.
    require() of /Users/cedson/node_modules/strip-ansi/index.js from /Users/cedson/node_modules/@swydo/custom-integrations/cli/commands/init/index.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
    Instead rename /Users/cedson/node_modules/strip-ansi/index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /Users/cedson/node_modules/strip-ansi/package.json.
    4 replies