Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About crayfish

  • Rank

Profile Information

  • Gender
    Not Telling
  1. Thanks Wim. Adding this solved it: --header "Content-Length: 0" Curiously, I had been able to get the PUT request to work with the Base Elements plugin without a Content-Length header: BE_HTTP_SetCustomHeader ( "Authorization" ; "<token>" ) & BE_HTTP_SetCustomHeader ( "Content-Type" ; "application/json" ) & BE_HTTP_PUTData ( "https://discordapp.com/api/channels/<channel_id>/messages/<message_id>/reactions/<emoji>/@me" ; "" ) Thanks for your help!
  2. Hi, I'm trying to do a cURL PUT request using Insert from URL to Discord's API. I've successfully completed the PUT request using Postman, but I can't get it to work in Filemaker. I've successfully completed GET and POST requests with Filemaker, so I know my Discord authorization is working. Here's the url I'm using (with IDs removed): "https://discordapp.com/api/channels/<channel_id>/messages/<message_id>/reactions/<:name:id>/@me" Here are my curl options (with authorization removed): --request PUT --header "Authorization: <token>" --header "User-Agent: <user>" --header "Content-Type: application/json" I'm getting this error response: <!DOCTYPE html> <html lang=en> <meta charset=utf-8> <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width"> <title>Error 411 (Length Required)!!1</title> <a href=//www.google.com/><span id=logo aria-label=Google></span></a> <p><b>411.</b> <ins>That’s an error.</ins> <p>POST requests require a <code>Content-length</code> header. <ins>That’s all we know.</ins> The last line of the response makes me wonder if Filemaker is submitting it as POST and not PUT? Any suggestions are appreciated! Thanks!
  3. Has anyone worked with Websocket APIs and Filemaker Server? I'm interested in connecting FMS to Discord's Websocket API. Is it possible to do this natively? If not, does anyone have suggestions of what I might look into? Thanks!
  4. I've been using Daniel Smith's JSON scripts from (http://www.modularfilemaker.org/module/json/) to parse JSON. It's worked quite reliably (thanks Daniel!), but I'm wondering if anyone has compared its parsing speed to MBS's JSON plugin or the new native Filemaker 16 JSON functions? I'm still on 15. I'm working with some larger JSON files that are taking a long time to parse and hoping for a faster solution. Any data on which option parses JSON fastest? Any disadvantages/advantages to each option? Thanks!
  5. I'd like to create an IRC client for Filemaker to interact with Twitch chat. Does anyone have any general suggestions to point me in the right direction on how I might most easily create this? I know a little php and javascript and I have access to 360works and MBS plugins. Thanks for any suggestions!
  6. I'm probably missing something obvious.... If I open the attached file in a webviewer, it works as expected. "file:/" & Get(DesktopPath) & "testpopup.html" However, if I copy the code from that file and paste it into a field codeHTML and then use the following webviewer calculation "data:text/html," & codeHTML, then the popups don't work. I'm on Filemaker Pro Advanced 13.0v3 on Mac OS X 10.10.5 The code will be changing dynamically so I'd rather not have to be exporting a temp file every time in order for popups to work. Any ideas? [p.s. the code allows you to create popups using CSS only, no Javascript. credit goes to Prakash Nakrani: http://www.sevensignature.com/blog/code/pure-css-popup-without-javascript/] testpopup.html
  7. Has anyone been able to log into Facebook using Web Assistant? I've tried the following without success: WAGetURL( "http://facebook.com" ; "email=" ; "pass=[password]" ; "type=text" ) and WAGetURL( "http://facebook.com" ; "username=" ; "password=[password]" ; "type=text" )
  8. On Server 13.0.1 on a Mac, is it possible to run scheduled backups that only backup the databases and not the RC_Data_FMS folder? In our case, RC_Data_FMS is a huge folder (6+ GB). Everything in it would be easy to reproduce if necessary so we don't need to back it up as often as the databases themselves. It just contains thumbnails for images that are stored elsewhere.
  9. Awesome... that's much faster. Operation seems to have dropped down to less than a second. Thanks for your help!
  10. The below code takes 5-6 seconds to process (it's inside a webviewer). Client machine is connected to local Filemaker Server over wireless network. I'm trying to avoid creating a relationship just for this one usage, hence ExecuteSQL(). There is an intermediate table JoinClientsWebsites between Clients and Websites since some clients have the same website. Could I do something differently to improve performance? Thanks! ExecuteSQL(" SELECT url FROM Websites JOIN JoinClientsWebsites ON Websites.id=JoinClientsWebsites.id_websites JOIN Clients ON JoinClientsWebsites.id_clients=clients.id and JoinClientWebsites.primary='yes' WHERE Clients.id=?" ; "" ; "" ; Clients::id )
  11. The space bar works to select highlighted buttons. Thanks! Any ideas on these: - is there a keystroke to highlight the Data Viewer or Script Debugger? Command-Tilde only switches been database windows. - when you have a script highlighted in the Manage Scripts window, is there a shortcut to perform the script? - also in Manage Scripts, any shortcuts for New script/folder/separator and Delete script
  12. As a general question, I'm curious if there are any guides to setting up Filemaker development on a Mac to minimize mouse usage? And more specifically... When you open the Set Variable Options window, is there a keyboard shortcut to open up the Specify Calculation window? I can TAB over and highlight "Specify..." but if I press Return, it just clicks the "OK" button. And that question relates to all Filemaker windows that have buttons on them. Pressing return only executes the default button, regardless of whether or not another button is highlighted using TAB. Any general solution for this so I don't have to keep reaching for the mouse? Also... is there a keystroke to highlight the Data Viewer or Script Debugger? Command-Tilde only switches been database windows.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.